Skip to content

Instantly share code, notes, and snippets.

@sedkis
Created March 18, 2019 20:03
Show Gist options
  • Save sedkis/57600563ba581f3977cd295a73f8e25a to your computer and use it in GitHub Desktop.
Save sedkis/57600563ba581f3977cd295a73f8e25a to your computer and use it in GitHub Desktop.
FROM openjdk:8-jdk
RUN mkdir -p /usr/app
WORKDIR /usr/app
COPY ./target/my-jar.jar .
EXPOSE 8181
CMD /usr/bin/java -jar \
-Dweb.security.api.password="$(cat /run/secrets/my-secret)" \
./my-jar.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment