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", "preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json", "check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"prisma:generate": "prisma generate",
"lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .", "lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
"format": "prettier --config ./prettierrc --write --plugin-search-dir=. .", "format": "prettier --config ./prettierrc --write --plugin-search-dir=. .",
"test": "vitest" "test": "vitest"

View file

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