blob: 91a5e78b3a938660ab28cb5203ba6e01f69132aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
FROM openjdk:8-jdk-alpine
EXPOSE 8080
USER root
RUN addgroup -g 1000 sdc && adduser -S -u 1000 -G sdc -s /bin/sh sdc
ARG ARTIFACT
ADD --chown=sdc:sdc ${ARTIFACT} /app.jar
COPY --chown=sdc:sdc org.onap.sdc.p12 /keystore
COPY --chown=sdc:sdc org.onap.sdc.trust.jks /truststore
COPY --chown=sdc:sdc startup.sh .
RUN chmod 744 startup.sh
RUN mkdir /var/log/ONAP/
RUN chown sdc:sdc /var/log/ONAP/
USER sdc
ENTRYPOINT [ "./startup.sh" ]
|