Skip to content

Commit

Permalink
Merge pull request #960 from navikt/distroless
Browse files Browse the repository at this point in the history
Distroless
  • Loading branch information
throndi authored Feb 19, 2024
2 parents d3dd957 + 9fed0b7 commit 35b4115
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ghcr.io/navikt/baseimages/temurin:21
ENV APPLICATION_NAME=familie-ef-soknad-api
FROM gcr.io/distroless/java21-debian12:nonroot
ENV TZ="Europe/Oslo"
EXPOSE 8000
COPY ./target/familie-ef-soknad-api-1.0-SNAPSHOT.jar "app.jar"
COPY ./target/familie-ef-soknad-api-1.0-SNAPSHOT.jar /app/app.jar
ENV JAVA_OPTS="-XX:MaxRAMPercentage=75"
CMD ["-jar", "/app/app.jar"]

0 comments on commit 35b4115

Please sign in to comment.