diff options
-rw-r--r-- | pom.xml | 14 | ||||
-rw-r--r-- | src/main/docker/Dockerfile | 4 |
2 files changed, 9 insertions, 9 deletions
@@ -233,7 +233,7 @@ <goals> <goal>copy-resources</goal> </goals><!-- here the phase you need --> - <phase>validate</phase> + <phase>package</phase> <configuration> <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory> <resources> @@ -254,7 +254,7 @@ </goals> <phase>validate</phase> <configuration> - <outputDirectory>${project.basedir}/target/docker-stage/opt/app/config</outputDirectory> + <outputDirectory>${project.basedir}/target/docker-stage/config</outputDirectory> <resources> <resource> <directory>config</directory> @@ -273,9 +273,9 @@ <goals> <goal>copy-resources</goal> </goals> - <phase>validate</phase> + <phase>package</phase> <configuration> - <outputDirectory>${project.basedir}/target/docker-stage/opt/app/bin</outputDirectory> + <outputDirectory>${project.basedir}/target/docker-stage/</outputDirectory> <resources> <resource> <directory>src/main/docker</directory> @@ -292,12 +292,12 @@ <goals> <goal>copy-resources</goal> </goals> - <phase>validate</phase> + <phase>package</phase> <configuration> - <outputDirectory>${project.basedir}/target/docker-stage/opt/app/lib</outputDirectory> + <outputDirectory>${project.basedir}/target/docker-stage/</outputDirectory> <resources> <resource> - <directory>target/</directory> + <directory>target</directory> <includes> <include>*.jar</include> </includes> diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index 0cdd1cf..f69af02 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -8,9 +8,9 @@ RUN mkdir -p $MICROSERVICE_HOME/config/ RUN mkdir -p $MICROSERVICE_HOME/lib/ RUN mkdir -p $MICROSERVICE_HOME/bin/ -ADD target/pomba-context-aggregator.jar $MICROSERVICE_HOME/lib/ +ADD pomba-context-aggregator.jar $MICROSERVICE_HOME/lib/ COPY config/ $MICROSERVICE_HOME/config/ -ADD target/startService.sh $MICROSERVICE_HOME/bin/ +ADD startService.sh $MICROSERVICE_HOME/bin/ RUN chmod 755 $MICROSERVICE_HOME/config/* RUN chmod 755 $MICROSERVICE_HOME/lib/* |