-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### 💰 Hva skal gjøres, og hvorfor? Gjør som på ba-sak. Bytter til distroless. For å få helt kontroll på Timezone/TZ for datavarehusendringer som følger. Bruker printenv i stedet for env for å hente ut miljøvariabler. Testet preprod og DevLauncherPostgresPreprod
- Loading branch information
Showing
2 changed files
with
11 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
FROM ghcr.io/navikt/baseimages/temurin:21 | ||
FROM busybox:1.36.1-uclibc as busybox | ||
|
||
ENV APPD_ENABLED=true | ||
ENV APP_NAME=familie-ks-sak | ||
# Final image | ||
FROM gcr.io/distroless/java21:nonroot | ||
COPY --from=busybox /bin/printenv /bin/printenv | ||
COPY --chown=nonroot:nonroot ./build/libs/familie-ks-sak.jar /app/app.jar | ||
WORKDIR /app | ||
|
||
COPY ./build/libs/familie-ks-sak.jar "app.jar" | ||
ENV APP_NAME=familie-ks-sak | ||
ENV TZ="Europe/Oslo" | ||
# TLS Config works around an issue in OpenJDK... See: https://github.com/kubernetes-client/java/issues/854 | ||
ENTRYPOINT [ "java", "-Djdk.tls.client.protocols=TLSv1.2", "-jar", "/app/app.jar" ] |
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