Skip to content

Instantly share code, notes, and snippets.

@porkotron
Created June 17, 2020 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save porkotron/ad4cc32dd3b0a8ee06f69fcc63ec0176 to your computer and use it in GitHub Desktop.
Save porkotron/ad4cc32dd3b0a8ee06f69fcc63ec0176 to your computer and use it in GitHub Desktop.
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