Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: docker ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Aug 12, 2024
1 parent d4f05c0 commit 726a6ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
tests
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.next
!.next/static
!.next/standalone
.git
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ RUN npm ci --ignore-scripts

COPY . .

RUN npx prisma generate
RUN --mount=type=secret,id=POSTGRES,target=./.env npm run build

RUN npx prisma generate && npm run build
RUN npm run build

# Production image
FROM node:${NODE_VERSION} AS production
Expand Down

0 comments on commit 726a6ff

Please sign in to comment.