支持docker

pull/3/head
tanghc 4 years ago
parent dc24e511a1
commit 645a14e4f2
  1. 8
      dockerfile
  2. 13
      pom.xml

@ -2,10 +2,10 @@ FROM java:8
VOLUME /tmp
VOLUME /sop
ADD sop-gateway/target/*.jar /sop/sop-gateway/sop-gateway.jar
ADD sop-admin/sop-admin-server/target/*.jar /sop/sop-admin/sop-admin.jar
ADD sop-website/target/*.jar /sop/sop-website/sop-website.jar
ADD sop-example/sop-story/target/*.jar /sop/sop-story/sop-story.jar
ADD sop-gateway/target/*.jar sop/sop-gateway/sop-gateway.jar
ADD sop-admin/sop-admin-server/target/*.jar sop/sop-admin/sop-admin.jar
ADD sop-website/target/*.jar sop/sop-website/sop-website.jar
ADD sop-example/sop-story/target/*.jar sop/sop-story/sop-story.jar
# JVM设置

@ -237,19 +237,6 @@
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Loading…
Cancel
Save