Created
January 8, 2021 17:31
-
-
Save javatodev/c908420e9f53abb60404abfcb349a7e2 to your computer and use it in GitHub Desktop.
Docker file for spring boot MySQL 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-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