Update Dockerfile and docker-compose.yml to streamline Prisma migration and build process

This commit is contained in:
Luke Hagar
2025-08-14 12:06:27 -05:00
parent 8fd9a4a8ea
commit 4d43969d2f
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ RUN pnpm install --frozen-lockfile
COPY . .
# Generate Prisma client and build SvelteKit (Node adapter)
RUN pnpm prisma generate && pnpm prisma migrate deploy
RUN pnpm prisma generate
RUN pnpm build

View File

@@ -45,7 +45,7 @@ services:
SERVICE_FQDN_WEB_3000: "" # Coolify will generate the public URL
ports:
- "3000:3000"
command: ["node", "build/index.js"]
command: ["sh", "-c", "pnpm prisma migrate deploy && node build/index.js"]
volumes:
pgdata: