youlai-mall/youlai-auth/Dockerfile

7 lines
282 B
Docker
Raw Normal View History

FROM openjdk:8-jdk-alpine
VOLUME /tmp
ADD target/youlai-auth.jar youlai-auth.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/youlai-auth.jar"]
EXPOSE 8000
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \&& echo 'Asia/Shanghai' >/etc/timezone