diff --git a/ruoyi-auth/Dockerfile b/ruoyi-auth/Dockerfile new file mode 100644 index 00000000..de166336 --- /dev/null +++ b/ruoyi-auth/Dockerfile @@ -0,0 +1,13 @@ +FROM openjdk:8-jdk +LABEL maintainer=tangang + + +#启动自行加载 服务名-prod.yml配置 +ENV PARAMS="--server.port=8080 --spring.profiles.active=dev --spring.cloud.nacos.server-addr= +his-nacos.oneos-tg:8848 --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