Skip to content

Commit e755ad3

Browse files
authored
Use distroless (#101)
* use distroless * add entrypoint
1 parent 57a8000 commit e755ad3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
FROM ghcr.io/navikt/baseimages/temurin:21
2-
1+
FROM gcr.io/distroless/java21
2+
ENV TZ="Europe/Oslo"
33
ENV JDK_JAVA_OPTIONS="-XX:MaxRAMPercentage=75.0 -XX:+UseParallelGC -XX:ActiveProcessorCount=2"
4-
5-
LABEL org.opencontainers.image.source=https://github.com/navikt/aktivitetskrav-backend
4+
WORKDIR /app
65
COPY build/libs/*.jar app.jar
6+
ENTRYPOINT ["java", "-jar", "app.jar"]
7+
LABEL org.opencontainers.image.source=https://github.com/navikt/aktivitetskrav-backend

0 commit comments

Comments
 (0)