Skip to content

Commit

Permalink
test handling minification docker compose prod - install dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
DavyR01 committed Aug 11, 2024
1 parent 7870c31 commit 8f55fc9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
5 changes: 3 additions & 2 deletions backend/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ WORKDIR /app
COPY --from=builder /app/dist/ /app/dist/
RUN ls -la /app/dist/

COPY package.json package.json
COPY package.json ./
RUN pnpm install --prod

CMD pnpm run startprod
# CMD pnpm run startprod
CMD ["node", "./dist/index.js"]
1 change: 1 addition & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"argon2": "^0.31.2",
"class-validator": "^0.14.0",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.18.2",
"graphql": "^16.8.1",
"graphql-scalars": "^1.22.4",
Expand Down
23 changes: 17 additions & 6 deletions backend/pnpm-lock.yaml

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

0 comments on commit 8f55fc9

Please sign in to comment.