Skip to content

Commit

Permalink
attempt to fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Nov 20, 2024
1 parent 3a163ad commit 194c642
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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 . .
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 194c642

Please sign in to comment.