fix: generate prisma before build in Dockerfile

This commit is contained in:
wilson 2026-03-01 10:22:40 +00:00
parent 9882a965eb
commit 432bf5b7b3
2 changed files with 67 additions and 65 deletions

View file

@ -8,6 +8,7 @@
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"prisma:generate": "prisma generate",
"lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
"format": "prettier --config ./prettierrc --write --plugin-search-dir=. .",
"test": "vitest"

View file

@ -8,6 +8,7 @@ ENV CI=true
RUN npm i -g pnpm
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm prisma:generate
RUN pnpm build
RUN pnpm prune --prod