diff --git a/Dockerfile b/Dockerfile index c3a322b3..cd498d90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Use an official Node runtime as the base image FROM node:18-alpine - +ARG DATABASE_URL ARG NEXT_PUBLIC_SSO_DOMAIN ARG NEXT_PUBLIC_SUPABASE_URL ARG NEXT_PUBLIC_SUPABASE_ANON_KEY @@ -24,6 +24,7 @@ ENV SUPABASE_PROJECT_REF=${SUPABASE_PROJECT_REF} ENV GITHUB_PROXY_CALLBACK_URL=${GITHUB_PROXY_CALLBACK_URL} ENV DIGGER_WEBHOOK_SECRET=${DIGGER_WEBHOOK_SECRET} ENV DIGGER_TRIGGER_APPLY_URL=${DIGGER_TRIGGER_APPLY_URL} +ENV DATABASE_URL=${DATABASE_URL} # Install pnpm RUN npm install -g pnpm @@ -37,7 +38,6 @@ COPY prisma ./prisma # Install dependencies RUN pnpm install -RUN pnpm run prisma:generate # Copy the rest of the application code COPY . . diff --git a/package.json b/package.json index 1b582401..7b70a933 100644 --- a/package.json +++ b/package.json @@ -192,8 +192,7 @@ "start": "next start", "generate:types": "supabase gen types --lang=typescript --linked --schema public > src/lib/database.types.ts", "generate:types:local": "supabase gen types --lang=typescript --local > src/lib/database.types.ts", - "prisma:generate": "prisma generate", - "prisma:generate-sql": "prisma generate --sql", + "postinstall": "prisma generate --sql", "build": "next build", "test:e2e": "cross-env NODE_ENV=test playwright test", "test:e2e:ui": "cross-env NODE_ENV=test playwright test --ui", @@ -207,7 +206,7 @@ "@microflash/rehype-slugify": "^1.0.0", "@next/eslint-plugin-next": "^14.0.0", "@playwright/test": "^1.42.1", - "@prisma/client": "^5.20.0", + "@prisma/client": "^5.21.1", "@testing-library/react": "^14.0.0", "@types/events": "^3.0.1", "@types/formidable": "^3.4.0", @@ -241,7 +240,7 @@ "pg": "^8.11.3", "postcss": "^8.4.20", "prettier": "^3.0.0", - "prisma": "^5.20.0", + "prisma": "^5.21.1", "react-spring": "^9.7.3", "rehype-autolink-headings": "^7.0.0", "rehype-parse": "^9.0.0",