Docker整理

Dockerfile 文件:

[root@ssssypush]# cat Dockerfile 

FROM java:8

MAINTAINER dwen

VOLUME /tmp

ADD yiyou-push-0.0.1.jar app-push.jar

RUN bash -c 'touch /app-push.jar' 

#设置时区

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app-push.jar"]  

相关推荐