Skip to content

Commit

Permalink
copy server.js directly without creating src dir
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulrhmnGhanem committed Oct 27, 2022
1 parent 9e68927 commit 85ec6fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ COPY --chmod=${PERMISSION} --from=build /deps/node_modules/ node_modules/
COPY --chmod=${PERMISSION} package.json .
COPY --chmod=${PERMISSION} next.config.js .
COPY --chmod=${PERMISSION} public/ public/
RUN mkdir src/ && chown -R node src
COPY --chmod=${PERMISSION} src/server.js src/server.js
COPY --chmod=${PERMISSION} src/server.js server.js

USER node

CMD ["node", "src/server.js"]
CMD ["node", "server.js"]

0 comments on commit 85ec6fe

Please sign in to comment.