Skip to content

Commit

Permalink
Run as non-root user.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmulqueen committed Mar 9, 2022
1 parent db02420 commit 1c33bc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM node:16-alpine
ENV NODE_ENV=production

ENV CORS=""
ENV PORT=80
ENV PORT=8080

ENV MJML_KEEP_COMMENTS=false
ENV MJML_VALIDATION_LEVEL=soft
Expand All @@ -25,10 +25,10 @@ RUN set -ex \
COPY index.js ./index.js

COPY healthcheck.sh /app/healthcheck.sh

USER node
HEALTHCHECK --start-period=10s --retries=1 CMD /app/healthcheck.sh || exit 1

EXPOSE 80
EXPOSE 8080

# ENTRYPOINT [ "node", "--inspect=0.0.0.0:9229", "index.js" ]
ENTRYPOINT [ "node", "index.js" ]

0 comments on commit 1c33bc7

Please sign in to comment.