mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
refactor(Dockerfile): jdk镜像修改
This commit is contained in:
parent
dbca6c7daa
commit
8cfdb8aa94
@ -1,6 +1,12 @@
|
|||||||
FROM openjdk:8-jdk-alpine
|
FROM openjdk:8-jre
|
||||||
VOLUME /tmp
|
MAINTAINER youlai youlaitech@163.com
|
||||||
ADD target/ums-boot.jar mall-ums.jar
|
|
||||||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/mall-ums.jar"]
|
|
||||||
EXPOSE 8601
|
|
||||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \&& echo 'Asia/Shanghai' >/etc/timezone
|
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \&& echo 'Asia/Shanghai' >/etc/timezone
|
||||||
|
|
||||||
|
VOLUME /tmp
|
||||||
|
|
||||||
|
ADD target/ums-boot.jar mall-ums.jar
|
||||||
|
|
||||||
|
ENTRYPOINT ["java", "-Xmx128m", "-Djava.security.egd=file:/dev/./urandom","-jar","/mall-ums.jar"]
|
||||||
|
|
||||||
|
EXPOSE 8601
|
||||||
|
Loading…
Reference in New Issue
Block a user