Skip to content

Commit

Permalink
Merge pull request #80 from diggerhq/feat/fix-dockerfile-prisma
Browse files Browse the repository at this point in the history
feat/fix dockerfile prisma
  • Loading branch information
motatoes authored Nov 20, 2024
2 parents 2b9d09e + 82bef10 commit 41afb6a
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 40 deletions.
8 changes: 5 additions & 3 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 @@ -32,7 +33,8 @@ RUN npm install -g pnpm
WORKDIR /app

# Copy package.json and package-lock.json
COPY package*.json ./
COPY package*.json ./
COPY prisma ./prisma

# Install dependencies
RUN pnpm install
Expand All @@ -47,4 +49,4 @@ RUN CI=true pnpm run build
EXPOSE 3000

# Start the application
CMD ["pnpm", "start"]
ENTRYPOINT "pnpm start"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,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 @@ -240,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
70 changes: 35 additions & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 41afb6a

Please sign in to comment.