Skip to content

Commit f61f949

Browse files
authored
Distroless (#2528)
* Forsøker med distroless docker image * Skriver om Dockerfile litt for likhet av oppsett
1 parent 6a70b8e commit f61f949

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
FROM ghcr.io/navikt/baseimages/temurin:21
2-
3-
ENV APP_NAME=familie-ef-sak
1+
FROM gcr.io/distroless/java21-debian12:nonroot
2+
ENV TZ="Europe/Oslo"
3+
COPY target/familie-ef-sak.jar /app/app.jar
44
ENV JAVA_OPTS="-XX:MaxRAMPercentage=75"
5-
6-
COPY ./target/familie-ef-sak.jar "app.jar"
5+
CMD ["-jar", "/app/app.jar"]

0 commit comments

Comments
 (0)