Skip to content

Instantly share code, notes, and snippets.

@initcron
Created May 21, 2025 07:08
Show Gist options
  • Save initcron/71c23530f58cff819a3f5b23cdf997cb to your computer and use it in GitHub Desktop.
Save initcron/71c23530f58cff819a3f5b23cdf997cb to your computer and use it in GitHub Desktop.
Dockerfile for New Sysfoo App
FROM maven:3.9.6-eclipse-temurin-17 AS build
WORKDIR /app
COPY . .
RUN mvn package -DskipTests
FROM eclipse-temurin:17-jre-noble as package
WORKDIR /app
COPY --from=build /app/target/sysfoo-*.jar ./sysfoo.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "sysfoo.jar"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment