blob: d4b403e7c40181cbef4ac6d14d6bda3472f9a8fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Prepare stage for multistage image build
## START OF STAGE0 ##
FROM onap/ccsdk-alpine-j11-image:1.1.2 AS stage0
USER root
# add entrypoint
COPY *.sh /opt/app/onap/blueprints-processor/
# 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@ \
&& mkdir -p /opt/app/onap/blueprints/deploy \
&& touch /velocity.log \
&& chown -R onap:onap /opt /velocity.log \
&& chmod -R 755 /opt /velocity.log
## END OF STAGE0 ##
## This will create actual image
FROM onap/ccsdk-alpine-j11-image:1.1.2
USER root
COPY --from=stage0 /opt /opt
COPY --from=stage0 /velocity.log /velocity.log
USER onap
ENTRYPOINT [ "/opt/app/onap/blueprints-processor/startService.sh" ]
|