Skip to content

Commit

Permalink
feat: unprivileged docker user (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheibal committed Mar 23, 2022
1 parent 7f1db2e commit 25520a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ ENV JAVA_OPTS="$JAVA_OPTS -Xms256M -Xmx1G"

EXPOSE 8080

USER 65534:65534

ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /dgcg.jar" ]

0 comments on commit 25520a4

Please sign in to comment.