summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorkrishna <krishna.moorthy6@wipro.com>2019-08-22 18:43:57 +0530
committerkrishna <krishna.moorthy6@wipro.com>2019-08-22 18:48:17 +0530
commit7d37e678ff3abc2d886012206ea282a70a5f9921 (patch)
treede5083102582b90f624ba0fc6cbe8c99e2000a98 /pom.xml
parent047720a551fdfcc6713da79759bce4bbad45f1e0 (diff)
Change base image to reduce container footprint
Change-Id: I77e2f2a195836cd33be7c323ff268326a9874e65 Issue-ID: DCAEGEN2-1572 Signed-off-by: krishna <krishna.moorthy6@wipro.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml10
1 files changed, 2 insertions, 8 deletions
diff --git a/pom.xml b/pom.xml
index ef1c771..05e5503 100644
--- a/pom.xml
+++ b/pom.xml
@@ -246,7 +246,7 @@
<imageTag>${project.version}</imageTag>
<imageTag>latest</imageTag>
</imageTags>
- <baseImage>java:openjdk-8</baseImage>
+ <baseImage>openjdk:8-alpine</baseImage>
<user>sonhms</user>
<resources>
<resource>
@@ -254,23 +254,17 @@
<directory>${project.build.directory}</directory>
<include>${project.artifactId}-${project.version}.jar</include>
</resource>
- <resource>
- <targetPath>/bin</targetPath>
- <directory>${project.basedir}</directory>
- <include>entrypoint.sh</include>
- </resource>
</resources>
<runs>
<!-- Maven is loosing file permissions during artifacts copy -->
<run>adduser --disabled-password sonhms </run>
- <run>chmod +x /bin/entrypoint.sh</run>
<run>mv /bin/*.jar /bin/application.jar</run>
<run>chmod -R 777 /bin</run>
</runs>
<exposes>
<expose>8080</expose>
</exposes>
- <entryPoint>/bin/entrypoint.sh</entryPoint>
+ <entryPoint>java -jar /bin/application.jar</entryPoint>
</configuration>
<!--
<executions>