Skip to content

Instantly share code, notes, and snippets.

@SDiamante13
Created January 26, 2019 04:44
Show Gist options
  • Select an option

  • Save SDiamante13/50a3d0fd56ce66fa1ee0c4cf87add0ae to your computer and use it in GitHub Desktop.

Select an option

Save SDiamante13/50a3d0fd56ce66fa1ee0c4cf87add0ae to your computer and use it in GitHub Desktop.
Dockerfile for running Spring Boot Application
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