From 5e081b5cfdfa7afe7e2a04a6ace007ed59b3af4e Mon Sep 17 00:00:00 2001 From: tanghc Date: Mon, 19 Oct 2020 11:58: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/pom.xml | 19 +++++++++++++++++++ sop-gateway/src/main/docker/dockerfile | 4 ++++ 2 files changed, 23 insertions(+) create mode 100644 sop-gateway/src/main/docker/dockerfile diff --git a/sop-gateway/pom.xml b/sop-gateway/pom.xml index 97eed025..60ccfbfb 100644 --- a/sop-gateway/pom.xml +++ b/sop-gateway/pom.xml @@ -13,6 +13,7 @@ 1.8 + gitee.com/sop @@ -95,6 +96,24 @@ true + + + com.spotify + docker-maven-plugin + 1.0.0 + + ${docker.image.prefix}/${project.artifactId} + + src/main/docker + + + / + ${project.build.directory} + ${project.build.finalName}.jar + + + + diff --git a/sop-gateway/src/main/docker/dockerfile b/sop-gateway/src/main/docker/dockerfile new file mode 100644 index 00000000..ac259f9c --- /dev/null +++ b/sop-gateway/src/main/docker/dockerfile @@ -0,0 +1,4 @@ +FROM java:8 +VOLUME /tmp +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