aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/application/src/main/docker/Dockerfile
blob: 6326bb8629ad8957e43fcc55edd50ec6f3ce508e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM onap/ccsdk-alpine-j11-image:1.0.1

USER root
# add entrypoint
COPY startService.sh /opt/app/onap/blueprints-processor/startService.sh
# add application
COPY @project.build.finalName@-@assembly.id@.tar.gz /source.tar.gz

RUN tar -xzf /source.tar.gz -C /tmp \
 && cp -rf /tmp/@project.build.finalName@/opt / \
 && rm -rf /source.tar.gz \
 && rm -rf /tmp/@project.build.finalName@
 && touch /velocity.log \
 && chown onap:onap /velocity.log \
 && chmod 755 /velocity.log \
 && mkdir -p /opt/app/onap/blueprints/deploy \
 && chown onap:onap /opt -R \
 && chmod 755 /opt/app/onap/blueprints-processor/startService.sh

USER onap
ENTRYPOINT [ "/opt/app/onap/blueprints-processor/startService.sh" ]