Skip to content

Commit

Permalink
fix: fixed dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Silva committed Nov 22, 2022
1 parent 733d4e6 commit b73b4c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion backend/docker/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ FROM node:$TAG AS production

WORKDIR /app

COPY --from=builder /app/package*.json ./
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/package-lock.json ./package-lock.json
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules

Expand Down
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start:dev": "NODE_ENV=local nest start --watch",
"start:staging": "NODE_ENV=staging nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "NODE_ENV=prod nest start --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
Expand Down
6 changes: 5 additions & 1 deletion frontend/docker/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@ COPY --from=builder /app/node_modules ./node_modules

USER nextjs

CMD ["yarn", "start"]
EXPOSE 3000

ENV PORT 3000

CMD npm run start

0 comments on commit b73b4c2

Please sign in to comment.