Created
December 31, 2020 16:55
-
-
Save javatodev/13e2c8c7f3236a339ce37db436b71317 to your computer and use it in GitHub Desktop.
Dockerfile for a Java 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-postgresql-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