-
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.
Oppdatere Dockerfile og bygging (#679)
- Loading branch information
1 parent
99bae85
commit f03653c
Showing
4 changed files
with
9 additions
and
31 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,21 +1,18 @@ | ||
FROM navikt/java:15 | ||
ENV JAVA_OPTS --enable-preview | ||
ENV DUMMYPROP=fraDockerfile | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/navikt/vtp | ||
|
||
ARG JAR_FILE | ||
|
||
# Curl brukes av healthcheck i docker-compose. | ||
RUN apt-get -qq update && apt-get -qq -y install curl | ||
RUN mkdir /app/lib | ||
COPY server/target/lib/*.jar /app/lib/ | ||
|
||
COPY server/target/lib/*.jar /app/lib/ | ||
COPY server/kafkasecurity.conf /app/ | ||
COPY server/src/main/resources/logback.xml logback.xml | ||
COPY server/target/app.jar app.jar | ||
COPY run-java.sh / | ||
|
||
EXPOSE 8636 8063 8060 8389 9093 | ||
|
||
RUN chmod +x /run-java.sh | ||
ENV JAVA_OPTS="-Dlogback.configurationFile=logback.xml \ | ||
-XX:MaxRAMPercentage=75.0 \ | ||
-XX:+PrintFlagsFinal \ | ||
-Dfile.encoding=UTF8 \ | ||
-Duser.timezone=Europe/Oslo \ | ||
--enable-preview" |
This file was deleted.
Oops, something went wrong.
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
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