Skip to content

Commit

Permalink
fix: Dockerfile entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Aug 15, 2022
1 parent 8968588 commit 482fe43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ RUN npm ci
COPY . /app
RUN npm run build
RUN npm run test
RUN chmod +x /app/entrypoint.sh

# remove devDependencies, keep only used dependencies
RUN npm ci --only=production
Expand All @@ -41,5 +40,5 @@ COPY --from=builderenv /tini /tini
# (i.e. SIGTERM) to reach the service
# Read more here: https://aws.amazon.com/blogs/containers/graceful-shutdowns-with-ecs/
# and: https://www.ctl.io/developers/blog/post/gracefully-stopping-docker-containers/
# ENTRYPOINT ["/tini", "--"]
ENTRYPOINT ["/tini", "--", "/app/entrypoint.sh"]
ENTRYPOINT ["/tini", "--"]
CMD [ "/usr/local/bin/node", "--trace-warnings", "--abort-on-uncaught-exception", "--unhandled-rejections=strict", "dist/index.js" ]
4 changes: 0 additions & 4 deletions entrypoint.sh

This file was deleted.

0 comments on commit 482fe43

Please sign in to comment.