Skip to content

Commit

Permalink
Updated to run as a non root user.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmacfadden committed Jul 23, 2021
1 parent eb3874c commit da722ae
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
FROM openjdk:11.0.11-9-jdk

ADD stage /opt/convergence/
LABEL maintainer="Convergence Labs, Inc."

## Create convergence group and user to run as a non root user.
RUN groupadd -g 5000 convergence && \
useradd -u 5000 -g convergence convergence

COPY stage /opt/convergence/

RUN chown -RL convergence:convergence /opt/convergence/

EXPOSE 25520

WORKDIR /opt/convergence/

## Execute as the convergence user.
USER convergence

ENTRYPOINT ["/opt/convergence/bin/convergence-cluster-seed"]

0 comments on commit da722ae

Please sign in to comment.