prisma gets its own layer
This commit is contained in:
parent
c9618a4be6
commit
419352cc3e
@ -60,15 +60,17 @@ RUN \
|
|||||||
|
|
||||||
|
|
||||||
# Copy and install node package dependencies
|
# Copy and install node package dependencies
|
||||||
COPY package.json package-lock.json prisma ./
|
COPY package.json package-lock.json ./
|
||||||
RUN --mount=type=cache,target=/root/.npm npm install --ignore-scripts=false --foreground-scripts --verbose
|
RUN --mount=type=cache,target=/root/.npm npm install --ignore-scripts=false --foreground-scripts --verbose
|
||||||
|
|
||||||
|
# Copy Prisma schema and generate client
|
||||||
|
COPY prisma ./prisma
|
||||||
|
RUN npx prisma generate
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.npm \
|
RUN --mount=type=cache,target=/root/.npm \
|
||||||
--mount=type=cache,target=/app/node_modules \
|
--mount=type=cache,target=/app/node_modules \
|
||||||
npx prisma generate && \
|
npm install --ignore-scripts=false --foreground-scripts --verbose && \
|
||||||
npm install --ignore-scripts=false --foreground-scripts --verbose
|
npx prisma generate
|
||||||
|
|
||||||
|
|
||||||
# Copy the rest of the app code
|
# Copy the rest of the app code
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "futureporn-our",
|
"name": "futureporn-our",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "2.8.30",
|
"version": "2.8.31",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "concurrently npm:dev:serve npm:dev:build:server npm:dev:build:client npm:dev:worker npm:dev:compose npm:dev:sftp npm:dev:qbittorrent npm:dev:tailscale",
|
"dev": "concurrently npm:dev:serve npm:dev:build:server npm:dev:build:client npm:dev:worker npm:dev:compose npm:dev:sftp npm:dev:qbittorrent npm:dev:tailscale",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user