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"]