2020-09-17 09:27:05 +08:00
|
|
|
FROM moxm/java:1.8-full
|
2019-02-01 21:06:59 +08:00
|
|
|
|
|
|
|
MAINTAINER wangiegie@gmail.com
|
|
|
|
|
2020-09-17 09:27:05 +08:00
|
|
|
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
|
2020-01-27 22:46:56 +08:00
|
|
|
|
2020-06-23 11:04:30 +08:00
|
|
|
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
2019-02-01 21:06:59 +08:00
|
|
|
|
2020-06-23 11:04:30 +08:00
|
|
|
RUN mkdir -p /pig-gateway
|
2019-02-01 21:06:59 +08:00
|
|
|
|
2020-06-23 11:04:30 +08:00
|
|
|
WORKDIR /pig-gateway
|
2019-02-01 21:06:59 +08:00
|
|
|
|
|
|
|
EXPOSE 9999
|
|
|
|
|
2020-06-23 11:04:30 +08:00
|
|
|
ADD ./target/pig-gateway.jar ./
|
2019-02-01 21:06:59 +08:00
|
|
|
|
2020-09-17 09:27:05 +08:00
|
|
|
CMD sleep 60;java $JAVA_OPTS -jar pig-gateway.jar
|