prisma gets its own layer
Some checks failed
ci / test (push) Failing after 1m12s
fp/our CI/CD / build (push) Successful in 13m6s

This commit is contained in:
CJ_Clippy 2025-09-30 23:49:39 -08:00
parent c9618a4be6
commit 419352cc3e
2 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -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",