Skip to content

Commit

Permalink
chore: bruker et image med apple m4 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsladek committed Jan 21, 2025
1 parent 41ed250 commit d5ae9aa
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
FROM gcr.io/distroless/java21-debian12:nonroot
LABEL org.opencontainers.image.source=https://github.com/navikt/vtp
# Healtcheck lokalt/test
COPY --from=busybox:stable-musl /bin/wget /usr/bin/wget
FROM ghcr.io/navikt/fp-baseimages/distroless:21

WORKDIR /app
LABEL org.opencontainers.image.source=https://github.com/navikt/vtp

COPY server/kafkasecurity.conf ./
COPY server/src/main/resources/logback.xml ./
COPY server/target/app.jar ./
COPY server/target/lib/*.jar ./lib/

ENV JDK_JAVA_OPTIONS="-XX:MaxRAMPercentage=75.0 \
-XX:+PrintCommandLineFlags \
-Dfile.encoding=UTF-8 \
-Duser.timezone=Europe/Oslo \
-Dlogback.configurationFile=/app/logback.xml"

CMD ["app.jar"]

0 comments on commit d5ae9aa

Please sign in to comment.