Created
October 27, 2023 14:27
-
-
Save isaacssemugenyi/32869de05fd77fff4d1d8c65ac4051f9 to your computer and use it in GitHub Desktop.
Bundling a jar file
This file contains hidden or 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 maven:3.8.5-openjdk-17 as builder | |
WORKDIR /app | |
COPY pom.xml . | |
RUN mvn dependency:go-offline | |
COPY src/ ./src/ | |
RUN mvn clean package -DskipTests=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment