diff options
Diffstat (limited to 'ms/controllerblueprints/application/src/main/docker/Dockerfile')
-rw-r--r-- | ms/controllerblueprints/application/src/main/docker/Dockerfile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ms/controllerblueprints/application/src/main/docker/Dockerfile b/ms/controllerblueprints/application/src/main/docker/Dockerfile new file mode 100644 index 00000000..06304e1d --- /dev/null +++ b/ms/controllerblueprints/application/src/main/docker/Dockerfile @@ -0,0 +1,17 @@ +FROM anapsix/alpine-java:8_jdk + +RUN apk add --no-cache curl + +COPY startService.sh /startService.sh +RUN chmod 777 /startService.sh && dos2unix /startService.sh + +COPY @project.build.finalName@-@assembly.id@.tar.gz /source.tar.gz + +RUN (mkdir -p /source /opt/app/onap) && (tar -xzf /source.tar.gz -C /source) \ +&& (mv /source/@project.build.finalName@ /source/app) \ +&& (cp -rf /source/app/opt/app/onap/lib /opt/app/onap/) \ +&& (cp -rf /source/app/etc /) \ +&& (cp -rf /source/app/load /) \ +&& (rm -rf /source) + +ENTRYPOINT /startService.sh |