Created
October 9, 2020 08:05
-
-
Save willis7/8a16db6670f7fc0b91361919a8eb7051 to your computer and use it in GitHub Desktop.
Example Dockerfile for use with a Java Spring Boot project built with Docker
This file contains hidden or 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-jre-alpine | |
VOLUME /tmp | |
ADD build/libs/sdp-spring-boot*.jar app.jar | |
ADD .env .env | |
ENTRYPOINT [ "sh", "-c", "source .env && java -jar app.jar" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment