Skip to content

Instantly share code, notes, and snippets.

@isaacssemugenyi
Created October 27, 2023 14:27
Show Gist options
  • Save isaacssemugenyi/32869de05fd77fff4d1d8c65ac4051f9 to your computer and use it in GitHub Desktop.
Save isaacssemugenyi/32869de05fd77fff4d1d8c65ac4051f9 to your computer and use it in GitHub Desktop.
Bundling a jar file
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