Docker
This commit is contained in:
parent
5b56acf72b
commit
590d1bf937
|
@ -1,7 +1,8 @@
|
|||
FROM openjdk:8-jdk-alpine
|
||||
MAINTAINER Loafle <rnd@loafle.com>
|
||||
|
||||
ARG APP_FILENAME="com.loafle.overflow.overflow_server-1.0.0-SNAPSHOT.jar"
|
||||
ADD target/lib /service/lib
|
||||
ADD target/com.loafle.overflow.overflow_server.jar /service/
|
||||
ADD target/com.loafle.overflow.overflow_server-1.0.0-SNAPSHOT.jar /service/
|
||||
|
||||
ENTRYPOINT ["/usr/bin/java", "-jar", "/service/com.loafle.overflow.overflow_server.jar"]
|
||||
ENTRYPOINT ["/usr/bin/java", "-jar", "/service/com.loafle.overflow.overflow_server-1.0.0-SNAPSHOT.jar"]
|
||||
|
|
18
pom.xml
18
pom.xml
|
@ -226,17 +226,21 @@
|
|||
<goals>
|
||||
<goal>build</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>tag</id>
|
||||
<goals>
|
||||
<goal>tag</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<repository>docker.loafle.net/overflow/${project.build.finalName}</repository>
|
||||
<repository>docker.loafle.net/overflow/${project.artifactId}</repository>
|
||||
<tag>${project.version}</tag>
|
||||
</configuration>
|
||||
</execution>
|
||||
<!--<execution>-->
|
||||
<!--<id>tag</id>-->
|
||||
<!--<goals>-->
|
||||
<!--<goal>tag</goal>-->
|
||||
<!--</goals>-->
|
||||
<!--<configuration>-->
|
||||
<!--<repository>docker.loafle.net/overflow/${project.artifactId}</repository>-->
|
||||
<!--<tag>${project.version}</tag>-->
|
||||
<!--</configuration>-->
|
||||
<!--</execution>-->
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user