-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (27 loc) · 1.04 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
27
28
29
30
FROM azul/zulu-openjdk-centos:8
MAINTAINER Bard Lind <[email protected]>
RUN yum -y install yum-cron
RUN yum -y update
RUN yum -y install curl
# Install Application
RUN adduser IotFrontend
ADD target/IotFrontend*.jar /home/IotFrontend/IotFrontend.jar"
ADD docker/IotFrontend.yml /home/IotFrontend/IotFrontend.yml
RUN chown IotFrontend:IotFrontend /home/IotFrontend/IotFrontend.yml
ADD docker/IotFrontend_override.properties /home/IotFrontend/IotFrontend-override.properties
RUN chown IotFrontend:IotFrontend /home/IotFrontend/IotFrontend.properties
EXPOSE 21500:21599
WORKDIR "/home/IotFrontend"
CMD [ \
"java", \
"-Xdebug", \
"-Xrunjdwp:transport=dt_socket,address=21515,server=y,suspend=n", \
"-Dcom.sun.management.jmxremote.port=21516", \
"-Dcom.sun.management.jmxremote.rmi.port=21516", \
"-Dcom.sun.management.jmxremote.ssl=false", \
"-Dcom.sun.management.jmxremote.local.only=false", \
"-Dcom.sun.management.jmxremote.authenticate=false", \
"-Djava.rmi.server.hostname=localhost", \
"-jar", \
"IotFrontend.jar" \
]