Skip to content

Commit

Permalink
changed dockerfile to build and use index.js to server the project
Browse files Browse the repository at this point in the history
  • Loading branch information
Ancibal committed Apr 28, 2024
1 parent 6627f76 commit b0fa8f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ COPY package.json package-lock.json ./
RUN npm install

COPY . .
CMD ["npm", "run", "start"]
RUN npm run build
CMD ["node", "./dist/src/index.js"]

0 comments on commit b0fa8f1

Please sign in to comment.