Skip to content

Instantly share code, notes, and snippets.

@javatodev
Created January 17, 2021 15:52
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 javatodev/76b7ea84ad8674ba8203be825597ff83 to your computer and use it in GitHub Desktop.
Save javatodev/76b7ea84ad8674ba8203be825597ff83 to your computer and use it in GitHub Desktop.
Dockerfile for Spring Boot Application
FROM openjdk:8-jdk-alpine
LABEL maintainer="author@javatodev.com"
VOLUME /main-app
ADD build/libs/spring-boot-mongodb-base-project-0.0.1-SNAPSHOT.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar","/app.jar"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment