-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (21 loc) · 1.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM openjdk:11.0.8-jre-slim
EXPOSE 8080
VOLUME [ "/config" ]
ENV APPLICATION_CONFIG=/config/application.properties \
JAVA_TOOL_OPTIONS="-XX:+UseContainerSupport \
-XX:MaxRAMPercentage=80.0 \
-XX:+UseG1GC \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/logs/ \
-Dhost.name=localhost \
-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=9004 \
-Dcom.sun.management.jmxremote.rmi.port=9004 \
-Dcom.sun.management.jmxremote.local.only=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
-Dfile.encoding=UTF8 \
-Djava.rmi.server.hostname=localhost"
COPY [ "target/eh-replication.jar", "/app/eh-replication.jar" ]
ENTRYPOINT [ "java", "-Dlogging.config=/config/logback-spring.xml", "-jar" ]
CMD [ "/app/eh-replication.jar" ]