From 33d6fe0d75f4b29c3b979c1762e36e5ace6e6aed Mon Sep 17 00:00:00 2001 From: smallchill Date: Sun, 26 Apr 2020 18:40:57 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E6=9B=B4=E6=96=B0docker-readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/docker/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/docker/README.md b/doc/docker/README.md index 65bb6f1d5..e65faed91 100644 --- a/doc/docker/README.md +++ b/doc/docker/README.md @@ -92,8 +92,9 @@ EXPOSE 80 ADD ./target/blade-gateway.jar ./app.jar -CMD java -Djava.security.egd=file:/dev/./urandom -jar app.jar --spring.profiles.active=test +ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] +CMD ["--spring.profiles.active=test"] ``` ### 6. 在工程根目录的docker-compose.yml下加入配置,内容可参考如下