Skip to content

Commit

Permalink
Dockerfile:docker化方便使用
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouxinhang committed Mar 10, 2020
1 parent 6792fae commit 738c5d5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@
<version>1.3.3</version>
</dependency>
</dependencies>


<!--打jar包主清单问题解决-->
<build>
<finalName>WebSSH</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
3 changes: 3 additions & 0 deletions src/main/java/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: cn.objectspace.WebSSHStarter

4 changes: 4 additions & 0 deletions src/main/resources/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM frolvlad/alpine-oraclejdk8
VOLUME /tmp
ADD WebSSH.jar app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]

0 comments on commit 738c5d5

Please sign in to comment.