diff options
Diffstat (limited to 'src/main/resources/Dockerfile')
-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 |