Created
January 26, 2019 04:44
-
-
Save SDiamante13/50a3d0fd56ce66fa1ee0c4cf87add0ae to your computer and use it in GitHub Desktop.
Dockerfile for running Spring Boot Application
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-jdk-alpine | |
| VOLUME /tmp | |
| EXPOSE 8085 | |
| ADD build/libs/springboot-mongodb-0.0.1-SNAPSHOT.jar app.jar | |
| ENTRYPOINT ["java", "-Dspring.data.mongodb.uri=mongodb://mongo/test", "-jar", "app.jar"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment