Skip to content

Commit

Permalink
Merge pull request #15 from UnitVectorY-Labs/distroless
Browse files Browse the repository at this point in the history
Switching to distroless Java 17 to run the app
  • Loading branch information
JaredHatfield authored Nov 3, 2024
2 parents 2f90d28 + 06734ca commit f7a9751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ RUN mvn clean package -DskipTests -ntp && \
mv /app/target/*.jar /app/build/

# Stage 2: Run the application
FROM amazoncorretto:17-alpine-jdk
FROM gcr.io/distroless/java17-debian12
WORKDIR /app
COPY --from=build /app/build/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]
ENTRYPOINT ["java", "-jar", "app.jar"]

0 comments on commit f7a9751

Please sign in to comment.