diff --git a/Dockerfile b/Dockerfile index 1cd28e3..c9591db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,5 +10,6 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone VOLUME ["/home/logs/cloud-gateway"] #拷贝执行文件 COPY ./target/cloud-gateway.jar /home/app.jar +ENTRYPOINT ["java","-Dfile.encoding=utf-8","-jar"] CMD ["/home/app.jar"] #嘿嘿