-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
1 deletion.
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,20 @@ | ||
FROM ghcr.io/navikt/baseimages/temurin:21 | ||
FROM busybox:1.36.1-uclibc as busybox | ||
Check warning on line 1 in Dockerfile GitHub Actions / Build and deploy to feature / Build with maven and dockerThe 'as' keyword should match the case of the 'from' keyword
Check warning on line 1 in Dockerfile GitHub Actions / Build and deploy to main / Build with maven and dockerThe 'as' keyword should match the case of the 'from' keyword
|
||
|
||
FROM gcr.io/distroless/java21-debian12:nonroot | ||
LABEL maintainer="Team Bidrag" \ | ||
email="[email protected]" | ||
|
||
COPY --from=busybox /bin/sh /bin/sh | ||
COPY --from=busybox /bin/printenv /bin/printenv | ||
COPY --from=debian:9.11 /usr/lib/locale /usr/lib/locale | ||
|
||
WORKDIR /app | ||
|
||
COPY ./target/bidrag-behandling-*.jar app.jar | ||
|
||
EXPOSE 8080 | ||
ENV LANG='nb_NO.UTF-8' LANGUAGE='nb_NO:nb' LC_ALL='nb_NO.UTF-8' TZ="Europe/Oslo" | ||
ENV SPRING_PROFILES_ACTIVE=nais | ||
ENV JDK_JAVA_OPTIONS='-Dfile.encoding="UTF-8" -Dsun.jnu.encoding="UTF-8"' | ||
|
||
CMD ["app.jar"] |