diff --git a/Dockerfile b/Dockerfile index 695598d..c2c51d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,6 @@ FROM node:23-slim AS base # Default environment variables ENV PORT=7331 ENV NODE_ENV=production -ENV DATABASE_URL="postgresql://localhost:5432/taxhacker" # Build stage FROM base AS builder diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index aa1ca76..5006083 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -14,6 +14,7 @@ echo "PostgreSQL server is ready!" # Run database migrations echo "Running database migrations..." +npx prisma generate npx prisma migrate deploy # Start the application diff --git a/package.json b/package.json index 504366c..632241f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "next dev -p 7331 --turbopack", - "build": "prisma generate && next build", + "build": "next build", "start": "prisma migrate deploy && next start", "lint": "next lint" },