Skip to content

Instantly share code, notes, and snippets.

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