blob: 770dab9707f27349a76dc8bfc244e753b3543113 [file] [log] [blame]
awudzins40d04662020-02-04 14:53:39 +01001FROM docker.io/openjdk:11-jre-slim
2
Tomasz Golabekce778052020-02-14 09:14:05 +01003ARG VERSION=${version}
awudzins40d04662020-02-04 14:53:39 +01004
Pawel9fce4902020-02-07 13:26:25 +01005RUN groupadd certService && useradd -g certService certService
awudzins40d04662020-02-04 14:53:39 +01006
kjaniakc9ec0c52020-02-28 12:06:11 +01007RUN apt-get update && apt-get install -y vim curl
Tomasz Golabek7244c902020-02-21 15:49:34 +01008
Pawel9fce4902020-02-07 13:26:25 +01009RUN chown -R certService:certService /var/log
10
11USER certService:certService
12
Bartosz Gardziejewski41a54182020-02-13 10:14:16 +010013COPY target/aaf-certservice-api-${VERSION}.jar ./opt/onap/aaf/certservice/aaf-certservice-api.jar
Pawel9fce4902020-02-07 13:26:25 +010014
Bartosz Gardziejewski41a54182020-02-13 10:14:16 +010015ENTRYPOINT ["java","-jar","./opt/onap/aaf/certservice/aaf-certservice-api.jar"]