fix: generate prisma before build in Dockerfile
This commit is contained in:
parent
9882a965eb
commit
432bf5b7b3
2 changed files with 67 additions and 65 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue