Skip to content

Instantly share code, notes, and snippets.

@yensei
Created April 26, 2024 00:14
Show Gist options
  • Save yensei/f058a795bc19799781c93ac41cd87abe to your computer and use it in GitHub Desktop.
Save yensei/f058a795bc19799781c93ac41cd87abe to your computer and use it in GitHub Desktop.
dockerfile-mvn-spring-boot-example
# 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