Created
March 18, 2019 20:03
-
-
Save sedkis/57600563ba581f3977cd295a73f8e25a 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 | |
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