fix: run prisma db build after build

This commit is contained in:
wilson 2026-03-01 22:04:05 +00:00
parent 176f7102eb
commit 9f909d1b09
2 changed files with 2 additions and 0 deletions

View file

@ -9,6 +9,7 @@
"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", "prisma:generate": "prisma generate",
"prisma:push": "prisma db push",
"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:push
RUN pnpm build RUN pnpm build
RUN pnpm prune --prod RUN pnpm prune --prod