ifffff/pig-auth/Dockerfile

18 lines
361 B
Docker
Raw Normal View History

FROM moxm/java:1.8-full
2019-02-01 21:06:59 +08:00
MAINTAINER wangiegie@gmail.com
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
2019-02-01 21:06:59 +08:00
RUN mkdir -p /pig-auth
2019-02-01 21:06:59 +08:00
WORKDIR /pig-auth
2019-02-01 21:06:59 +08:00
EXPOSE 3000
ADD ./target/pig-auth.jar ./
2019-02-01 21:06:59 +08:00
CMD sleep 60;java $JAVA_OPTS -jar pig-auth.jar