Skip to content

Commit

Permalink
Støtte for ny beregning endringer
Browse files Browse the repository at this point in the history
  • Loading branch information
ugur93 committed Nov 22, 2024
1 parent 217a319 commit 5b953b2
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Dockerfile
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

View workflow job for this annotation

GitHub Actions / Build and deploy to feature / Build with maven and docker

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and deploy to main / Build with maven and docker

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

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"]

0 comments on commit 5b953b2

Please sign in to comment.