@@ -0,0 +1,4 @@
+FROM daocloud.io/library/java:8u40-jdk
+COPY mytest.jar /usr/local
+WORKDIR /usr/local
+CMD java -jar mytest.jar
@@ -0,0 +1,10 @@
+version: '3.1'
+services:
+ mytest:
+ build:
+ context: ./
+ dockerfile: Dockerfile
+ image: mytest:v1.0.0
+ container_name: mytest
+ ports:
+ - 8080:8080
@@ -30,6 +30,7 @@
</dependencies>
<build>
+ <finalName>mytest</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>