Docker
This commit is contained in:
parent
5b56acf72b
commit
590d1bf937
|
@ -1,7 +1,8 @@
|
||||||
FROM openjdk:8-jdk-alpine
|
FROM openjdk:8-jdk-alpine
|
||||||
MAINTAINER Loafle <rnd@loafle.com>
|
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/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>
|
<goals>
|
||||||
<goal>build</goal>
|
<goal>build</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>tag</id>
|
|
||||||
<goals>
|
|
||||||
<goal>tag</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<repository>docker.loafle.net/overflow/${project.build.finalName}</repository>
|
<repository>docker.loafle.net/overflow/${project.artifactId}</repository>
|
||||||
<tag>${project.version}</tag>
|
<tag>${project.version}</tag>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</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>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user