Skip to content

Instantly share code, notes, and snippets.

@initcron
Created October 16, 2024 09:40
Show Gist options
  • Save initcron/9cb45a80b459c7d0bdc3a219cc91f0b5 to your computer and use it in GitHub Desktop.
Save initcron/9cb45a80b459c7d0bdc3a219cc91f0b5 to your computer and use it in GitHub Desktop.
Single Stage Dockerfile for Sysfoo App
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