Skip to content

Instantly share code, notes, and snippets.

@javatodev
Created January 8, 2021 17:31
Show Gist options
  • Save javatodev/c908420e9f53abb60404abfcb349a7e2 to your computer and use it in GitHub Desktop.
Save javatodev/c908420e9f53abb60404abfcb349a7e2 to your computer and use it in GitHub Desktop.
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