Created
April 26, 2024 00:14
-
-
Save yensei/f058a795bc19799781c93ac41cd87abe to your computer and use it in GitHub Desktop.
dockerfile-mvn-spring-boot-example
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
# ejecuta aplicaciones spring-boot con JDK 17 compilando en el container utilizando el mvn wrapper | |
FROM openjdk:17-jdk-alpine | |
VOLUME /tmp | |
COPY .mvn ./.mvn | |
COPY src ./src | |
ADD mvnw ./mvnw | |
ADD pom.xml ./pom.xml | |
CMD [ "./mvnw", "spring-boot:run" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment