修改docker部署文件

pull/1/head
wangziyangyang 2020-04-13 15:06:07 +08:00
parent 8a640e7ea2
commit 64e84cac6b
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
FROM openjdk:8-jdk-alpine
VOLUME /tmp
ADD sparchetype-1.0.0.jar app.jar
ADD mes-1.0.0.jar app.jar
RUN bash -c 'touch /app.jar'
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' >/etc/timezone
&& echo 'Asia/Beijing' >/etc/timezone
EXPOSE 80
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]