From 49d817a0e1293bb364395d15c72472e93e73fa46 Mon Sep 17 00:00:00 2001 From: yanghb <yanghb> Date: 星期三, 29 三月 2023 22:32:47 +0800 Subject: [PATCH] 容器配置 --- DispatchTravel/guns-admin/docker/Dockerfile | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/DispatchTravel/guns-admin/docker/Dockerfile b/DispatchTravel/guns-admin/docker/Dockerfile index 77c6052..3549d32 100644 --- a/DispatchTravel/guns-admin/docker/Dockerfile +++ b/DispatchTravel/guns-admin/docker/Dockerfile @@ -8,6 +8,5 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN echo 'Asia/Shanghai' >/etc/timezone EXPOSE 5003 -ENV JAVA_OPTS="-Xmx400m -Xms400m -Djava.security.egd=file:/dev/./urandom" -# 配置容器启动后执行的命令 + ENTRYPOINT ["java","-Xmx400m","-Xms400m", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/server.jar", "--spring.profiles.active=prod"] -- Gitblit v1.7.1