diff options
author | Tony Hansen <tony@att.com> | 2019-02-27 00:23:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-02-27 00:23:06 +0000 |
commit | 791165faf645ae4d149c0f9493b4e28bab44355f (patch) | |
tree | a746184c4ee0e750eef016a7ec01310851054790 /src/main | |
parent | f7e07b1bfda9ffe612b1339e4b95394448c700f4 (diff) | |
parent | 2d336f92193423a1c9a542ca7dc0819fb5b5f3a9 (diff) |
Merge "Update docker image"
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/resources/Dockerfile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main/resources/Dockerfile b/src/main/resources/Dockerfile index 9ceba29..e2b6b89 100644 --- a/src/main/resources/Dockerfile +++ b/src/main/resources/Dockerfile @@ -17,10 +17,20 @@ # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END========================================================= # -FROM openjdk:8-jre +FROM openjdk:8-jre-alpine + ENTRYPOINT ["/usr/bin/java", "-jar", "/opt/app/pm-mapper/pm-mapper.jar"] ARG JAR WORKDIR /opt/app/pm-mapper + +RUN mkdir -p /var/log/ONAP +RUN addgroup -S onap \ + && adduser -S pm-mapper -G onap \ + && chown -R pm-mapper:onap /opt/app/pm-mapper \ + && chmod a+rwx /var/log/ONAP + ADD target/${JAR} /opt/app/pm-mapper/pm-mapper.jar ADD target/classes/mapping.ftl /opt/app/pm-mapper/etc/mapping.ftl ADD target/classes/measCollec_plusString.xsd /opt/app/pm-mapper/etc/measCollec_plusString.xsd + +USER pm-mapper |