Skip to content

Commit

Permalink
Merge pull request #968 from navikt/bugfix-java-opts
Browse files Browse the repository at this point in the history
Skal bytte ut deprecated JAVA_OPTS med JDK_JAVA_OPTIONS
  • Loading branch information
charliemidtlyng authored Sep 30, 2024
2 parents cd4328d + 5cdad64 commit c833981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM gcr.io/distroless/java21-debian12:nonroot
ENV TZ="Europe/Oslo"
COPY target/familie-ef-iverksett.jar /app/app.jar
ENV JAVA_OPTS="-XX:MaxRAMPercentage=75"
ENV JDK_JAVA_OPTIONS="-XX:MaxRAMPercentage=75"
CMD ["-jar", "/app/app.jar"]

0 comments on commit c833981

Please sign in to comment.