添加dockerfile,打包镜像
This commit is contained in:
parent
967bddd2de
commit
b0ce6e2ad1
5
guigu-ssyx-parent/service-gateway/Dockerfile
Normal file
5
guigu-ssyx-parent/service-gateway/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM openjdk:8-jdk-alpine
|
||||
LABEL authors="yovinchen"
|
||||
VOLUME /tmp
|
||||
ADD ./target/service-gateway.jar service-gateway.jar
|
||||
ENTRYPOINT ["java","-jar","/service-gateway.jar", "&"]
|
@ -32,5 +32,13 @@
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
@ -82,4 +82,13 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
5
guigu-ssyx-parent/service/service-acl/Dockerfile
Normal file
5
guigu-ssyx-parent/service/service-acl/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM openjdk:8-jdk-alpine
|
||||
LABEL authors="yovinchen"
|
||||
VOLUME /tmp
|
||||
ADD ./target/service-acl.jar service-acl.jar
|
||||
ENTRYPOINT ["java","-jar","/service-acl.jar", "&"]
|
5
guigu-ssyx-parent/service/service-activity/Dockerfile
Normal file
5
guigu-ssyx-parent/service/service-activity/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM openjdk:8-jdk-alpine
|
||||
LABEL authors="yovinchen"
|
||||
VOLUME /tmp
|
||||
ADD ./target/service-activity.jar service-activity.jar
|
||||
ENTRYPOINT ["java","-jar","/service-activity.jar", "&"]
|
5
guigu-ssyx-parent/service/service-product/Dockerfile
Normal file
5
guigu-ssyx-parent/service/service-product/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM openjdk:8-jdk-alpine
|
||||
LABEL authors="yovinchen"
|
||||
VOLUME /tmp
|
||||
ADD ./target/service-product.jar service-product.jar
|
||||
ENTRYPOINT ["java","-jar","/service-product.jar", "&"]
|
5
guigu-ssyx-parent/service/service-search/Dockerfile
Normal file
5
guigu-ssyx-parent/service/service-search/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM openjdk:8-jdk-alpine
|
||||
LABEL authors="yovinchen"
|
||||
VOLUME /tmp
|
||||
ADD ./target/service-search.jar service-search.jar
|
||||
ENTRYPOINT ["java","-jar","/service-search.jar", "&"]
|
5
guigu-ssyx-parent/service/service-sys/Dockerfile
Normal file
5
guigu-ssyx-parent/service/service-sys/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM openjdk:8-jdk-alpine
|
||||
LABEL authors="yovinchen"
|
||||
VOLUME /tmp
|
||||
ADD ./target/service-sys.jar service-sys.jar
|
||||
ENTRYPOINT ["java","-jar","/service-sys.jar", "&"]
|
Loading…
Reference in New Issue
Block a user