From e661f45bd1106cc8e669420a95137a283ad9424c Mon Sep 17 00:00:00 2001 From: tanghc Date: Mon, 19 Oct 2020 15:52:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sop-gateway/src/main/docker/dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sop-gateway/src/main/docker/dockerfile b/sop-gateway/src/main/docker/dockerfile index ac259f9c..79fcf801 100644 --- a/sop-gateway/src/main/docker/dockerfile +++ b/sop-gateway/src/main/docker/dockerfile @@ -1,4 +1,6 @@ FROM java:8 VOLUME /tmp +VOLUME /log ADD sop-gateway-4.0.3-SNAPSHOT.jar sop-gateway-4.0.3.jar -ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/sop-gateway-4.0.3.jar"] \ No newline at end of file + +ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom --logging.file=log/sop-gateway/log.log","-jar","/sop-gateway-4.0.3.jar"] \ No newline at end of file