From 590d1bf937e4afbe678fa702b9b1dc965fc7df73 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 7 Aug 2017 19:00:15 +0900 Subject: [PATCH] Docker --- Dockerfile | 5 +++-- pom.xml | 18 +++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index c4c05b7..6cfe152 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM openjdk:8-jdk-alpine MAINTAINER Loafle +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"] diff --git a/pom.xml b/pom.xml index db92a8a..5e17b6d 100644 --- a/pom.xml +++ b/pom.xml @@ -226,17 +226,21 @@ build - - - tag - - tag - - docker.loafle.net/overflow/${project.build.finalName} + docker.loafle.net/overflow/${project.artifactId} ${project.version} + + + + + + + + + +