IOT-3159
[iotivity.git] / cloud / account / Dockerfile
1 FROM openjdk:8-jre-alpine
2
3 ADD ./target/CloudAccount-0.0.1-SNAPSHOT.jar iotivity/AccountServer.jar
4 ADD ./target/lib/* iotivity/lib/
5 ADD ./properties/* iotivity/properties/
6
7 WORKDIR iotivity/
8
9 ENV COAP_PORT 5685
10 ENV TLS_MODE 0
11 ENV MONGODB_ADDRESS mongodb
12 ENV MONGODB_PORT 27017
13
14
15 ENV JMX_PORT 9002
16 ENV JAVA_JMX_OPTS "-Dcom.sun.management.jmxremote \
17                -Dcom.sun.management.jmxremote.port=${JMX_PORT} \
18                -Dcom.sun.management.jmxremote.rmi.port=${JMX_PORT} \
19                -Dcom.sun.management.jmxremote.local.only=false \
20                -Dcom.sun.management.jmxremote.authenticate=false \
21                -Dcom.sun.management.jmxremote.ssl=false \
22                -Djava.rmi.server.hostname= \
23                -XX:MetaspaceSize=30m -XX:MaxMetaspaceSize=40m \
24                -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -server "
25
26 EXPOSE 9002
27
28 ENTRYPOINT exec java $JAVA_JMX_OPTS $JAVA_MEMOTY_OPTS -jar AccountServer.jar