2020-10-01 17:17:03 +08:00
|
|
|
FROM moxm/java:1.8-full
|
2020-01-27 22:46:56 +08:00
|
|
|
|
2021-09-12 22:59:00 +08:00
|
|
|
RUN mkdir -p /pig-sentinel-dashboard
|
|
|
|
|
|
|
|
WORKDIR /pig-sentinel-dashboard
|
|
|
|
|
|
|
|
ARG JAR_FILE=target/pig-sentinel-dashboard.jar
|
|
|
|
|
|
|
|
COPY ${JAR_FILE} app.jar
|
2019-02-01 21:06:59 +08:00
|
|
|
|
2020-09-18 18:33:49 +08:00
|
|
|
EXPOSE 5003
|
2019-02-01 21:06:59 +08:00
|
|
|
|
2021-09-12 22:59:00 +08:00
|
|
|
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
|
|
|
|
|
|
|
|
CMD sleep 60; java -jar app.jar $JAVA_OPTS
|