Skip to content

Commit

Permalink
Do not run container as root #patch (#228)
Browse files Browse the repository at this point in the history
* Do not run container as root

Signed-off-by: Fredrik Sannholm <fredrik.sannholm@wolt.com>

* Fix command

Signed-off-by: Fredrik Sannholm <fredrik.sannholm@wolt.com>
  • Loading branch information
frsann authored Oct 13, 2021
1 parent 2a67882 commit d0f95b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ COPY --from=builder /app app
WORKDIR /app
ENV NODE_ENV=production PORT=8080
EXPOSE 8080

USER 1000

CMD ["index.js"]

0 comments on commit d0f95b1

Please sign in to comment.