Created
May 21, 2025 07:08
-
-
Save initcron/71c23530f58cff819a3f5b23cdf997cb to your computer and use it in GitHub Desktop.
Dockerfile for New Sysfoo App
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.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