-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bytter til distroless image og endrer til docker-build-push for å gen…
…erere sbom ved bygging (#613) * bytter til distroless image * bytter til docker-build-push for å generere sbom
- Loading branch information
1 parent
53cfd56
commit dd9dfa5
Showing
3 changed files
with
30 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
FROM ghcr.io/navikt/baseimages/temurin:21 | ||
FROM gcr.io/distroless/java21 | ||
COPY build/libs/*.jar ./ | ||
|
||
ENV JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom \ | ||
-Dspring.profiles.active=remote" | ||
ENV JAVA_OPTS='-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp' | ||
ENV LANG='nb_NO.UTF-8' LANGUAGE='nb_NO:nb' LC_ALL='nb:NO.UTF-8' TZ="Europe/Oslo" | ||
ENTRYPOINT ["java", "-jar", "/app.jar"] | ||
EXPOSE 8080 |