Skip to content

Instantly share code, notes, and snippets.

@willis7
Created October 9, 2020 08:05
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 willis7/8a16db6670f7fc0b91361919a8eb7051 to your computer and use it in GitHub Desktop.
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
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