Created
October 16, 2024 09:40
-
-
Save initcron/9cb45a80b459c7d0bdc3a219cc91f0b5 to your computer and use it in GitHub Desktop.
Single Stage Dockerfile for Sysfoo App
This file contains 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 | |
RUN mv /app/target/sysfoo-*.jar sysfoo.jar | |
EXPOSE 8080 | |
CMD ["java", "-jar", "sysfoo.jar"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment