This commit is contained in:
crusader 2017-08-07 19:00:15 +09:00
parent 5b56acf72b
commit 590d1bf937
2 changed files with 14 additions and 9 deletions

View File

@ -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
View File

@ -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>