From 8f601c0b056d05eeb4fdccee316499e5926bc8bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E6=B6=9B?= <9804780+wt19900402@user.noreply.gitee.com> Date: Mon, 14 Oct 2024 04:59:16 +0000 Subject: [PATCH] add ruoyi-auth/Dockerfile. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 文涛 <9804780+wt19900402@user.noreply.gitee.com> --- ruoyi-auth/Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ruoyi-auth/Dockerfile diff --git a/ruoyi-auth/Dockerfile b/ruoyi-auth/Dockerfile new file mode 100644 index 00000000..986d82b3 --- /dev/null +++ b/ruoyi-auth/Dockerfile @@ -0,0 +1,13 @@ +FROM harbor-test.1.cc/base/openjdk:8 +LABEL maintainer=wentao + + +#docker run -e PARAMS="--server.port 9090" +ENV PARAMS="--server.port=8080 --spring.profiles.active=prod --spring.cloud.nacos.server-addr=nacos.his-middle:8848 --spring.cloud.nacos.config.namespace=prod --spring.cloud.nacos.config.file-extension=yml" +RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai > /etc/timezone' + + +COPY target/*.jar /app.jar +EXPOSE 8080 + +ENTRYPOINT ["/bin/sh","-c","java -Dfile.encoding=utf8 -Djava.security.egd=file:/dev/./urandom -jar app.jar ${PARAMS}"] \ No newline at end of file