summaryrefslogtreecommitdiffstats
path: root/trustStoreMerger/Dockerfile
blob: 8f0f2481649fdd435f22535d2e5435faeb5fdd0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM docker.io/openjdk:11-jre-slim

ARG VERSION=${version}

RUN groupadd onap && useradd -g onap truststoreMerger

RUN chown -R truststoreMerger:onap /var/log

USER truststoreMerger:onap

COPY target/oom-truststore-merger-${VERSION}.jar ./opt/onap/oom/truststoremerger/oom-truststore-merger.jar

#Run as root allow to manage certificates provided by other containers. It should be change in future
USER root

ENTRYPOINT ["java","-jar","./opt/onap/oom/truststoremerger/oom-truststore-merger.jar"]