blob: 91a5e78b3a938660ab28cb5203ba6e01f69132aa [file] [log] [blame]
ilanap820f4ec2019-11-18 13:38:23 +02001FROM openjdk:8-jdk-alpine
2
3EXPOSE 8080
4
MichaelMorris1b548a32020-03-10 17:02:34 +00005USER root
6RUN addgroup -g 1000 sdc && adduser -S -u 1000 -G sdc -s /bin/sh sdc
ilanap820f4ec2019-11-18 13:38:23 +02007
8ARG ARTIFACT
9
MichaelMorris1b548a32020-03-10 17:02:34 +000010ADD --chown=sdc:sdc ${ARTIFACT} /app.jar
ilanap820f4ec2019-11-18 13:38:23 +020011
MichaelMorris1b548a32020-03-10 17:02:34 +000012COPY --chown=sdc:sdc org.onap.sdc.p12 /keystore
13COPY --chown=sdc:sdc org.onap.sdc.trust.jks /truststore
ilanap820f4ec2019-11-18 13:38:23 +020014
MichaelMorris1b548a32020-03-10 17:02:34 +000015COPY --chown=sdc:sdc startup.sh .
ilanap820f4ec2019-11-18 13:38:23 +020016RUN chmod 744 startup.sh
MichaelMorris1b548a32020-03-10 17:02:34 +000017
18RUN mkdir /var/log/ONAP/
19RUN chown sdc:sdc /var/log/ONAP/
ilanap820f4ec2019-11-18 13:38:23 +020020
MichaelMorris1b548a32020-03-10 17:02:34 +000021USER sdc
22ENTRYPOINT [ "./startup.sh" ]