Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker file for spring boot MySQL application
FROM openjdk:8-jdk-alpine
LABEL maintainer="author@javatodev.com"
VOLUME /main-app
ADD build/libs/spring-boot-mysql-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