Created
January 17, 2021 15:52
-
-
Save javatodev/76b7ea84ad8674ba8203be825597ff83 to your computer and use it in GitHub Desktop.
Dockerfile for Spring Boot Application
This file contains 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 | |
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