-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb3874c
commit da722ae
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |