aboutsummaryrefslogtreecommitdiffstats
path: root/certServicePostProcessor/Dockerfile
blob: 27fa18304dc8273a5e8cc2da9402e8aa3564bc02 (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 postProcessor

RUN chown -R postProcessor:onap /var/log

USER postProcessor:onap

COPY target/oom-certservice-post-processor-${VERSION}.jar /opt/onap/oom/cert-service/post-processor/oom-certservice-post-processor.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/cert-service/post-processor/oom-certservice-post-processor.jar"]