awudzins | 40d0466 | 2020-02-04 14:53:39 +0100 | [diff] [blame] | 1 | FROM docker.io/openjdk:11-jre-slim |
| 2 | |
Tomasz Golabek | ce77805 | 2020-02-14 09:14:05 +0100 | [diff] [blame] | 3 | ARG VERSION=${version} |
awudzins | 40d0466 | 2020-02-04 14:53:39 +0100 | [diff] [blame] | 4 | |
Pawel | 9fce490 | 2020-02-07 13:26:25 +0100 | [diff] [blame] | 5 | RUN groupadd certService && useradd -g certService certService |
awudzins | 40d0466 | 2020-02-04 14:53:39 +0100 | [diff] [blame] | 6 | |
kjaniak | c9ec0c5 | 2020-02-28 12:06:11 +0100 | [diff] [blame] | 7 | RUN apt-get update && apt-get install -y vim curl |
Tomasz Golabek | 7244c90 | 2020-02-21 15:49:34 +0100 | [diff] [blame] | 8 | |
Pawel | 9fce490 | 2020-02-07 13:26:25 +0100 | [diff] [blame] | 9 | RUN chown -R certService:certService /var/log |
| 10 | |
| 11 | USER certService:certService |
| 12 | |
Bartosz Gardziejewski | 41a5418 | 2020-02-13 10:14:16 +0100 | [diff] [blame] | 13 | COPY target/aaf-certservice-api-${VERSION}.jar ./opt/onap/aaf/certservice/aaf-certservice-api.jar |
Pawel | 9fce490 | 2020-02-07 13:26:25 +0100 | [diff] [blame] | 14 | |
Bartosz Gardziejewski | 41a5418 | 2020-02-13 10:14:16 +0100 | [diff] [blame] | 15 | ENTRYPOINT ["java","-jar","./opt/onap/aaf/certservice/aaf-certservice-api.jar"] |