Created
June 17, 2020 21:45
-
-
Save porkotron/ad4cc32dd3b0a8ee06f69fcc63ec0176 to your computer and use it in GitHub Desktop.
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
FROM openjdk:8-jdk-alpine | |
COPY cl-node.jar /var/lib/constellation/cl-node.jar | |
COPY logback.xml /var/lib/constellation/logback.xml | |
RUN adduser -S -h /var/lib/constellation constellation && chown -R constellation /var/lib/constellation | |
WORKDIR /var/lib/constellation/ | |
ENV ip "127.0.0.1" | |
ENV xmx 5G | |
ENV CL_KEYSTORE_NAME "" | |
ENV CL_WHITELISTING_NAME "" | |
ENV CL_ALIAS "" | |
ENV CL_STOREPASS "" | |
ENV CL_KEYPASS "" | |
USER constellation | |
EXPOSE 9000 | |
EXPOSE 9001 | |
EXPOSE 9002 | |
ENTRYPOINT java -Dlogback.configurationFile=/var/lib/constellation/logback.xml -Xmx$xmx -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -jar cl-node.jar --ip $ip --port 9000 -k $CL_KEYSTORE_NAME --alias $CL_ALIAS --whitelisting $CL_WHITELISTING_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment