update parent,common references in policy/models pom
[policy/models.git] / models-sim / policy-models-sim-pdp / src / main / package / docker / Dockerfile
index 8152304..fe46069 100644 (file)
@@ -1,7 +1,7 @@
 #
 # ============LICENSE_START=======================================================
-#  Copyright (C) 2019 Nordix Foundation.
-#  Modifications Copyright (C) 2019-2020 AT&T Intellectual Property.
+#  Copyright (C) 2019-2021,2023 Nordix Foundation.
+#  Modifications Copyright (C) 2019 AT&T Intellectual Property.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # ============LICENSE_END=========================================================
 #
 
-FROM onap/policy-jre-alpine:2.1.0
+#
+# Docker file to build an image that runs the PDP simulator on Java 8 in alpine
+#
+
+FROM onap/policy-jre-alpine:2.6.2
 
 LABEL maintainer="Policy Team"
 
@@ -30,6 +34,7 @@ ENV POLICY_LOGS=${POLICY_LOGS}
 
 # Create PDP simulator user and group
 # Add simulator-specific directories and set ownership as the simulator user
+USER root
 RUN mkdir -p ${POLICY_HOME}/pdp-sim \
     && mkdir -p ${POLICY_HOME}/pdp-sim/bin \
     && mkdir -p ${POLICY_LOGS} \
@@ -50,4 +55,4 @@ RUN find /opt/app -type d -perm 755 \
 
 USER policy
 ENV PATH ${POLICY_HOME}/pdp-sim/bin:$PATH
-ENTRYPOINT [ "bash", "pdp-sim.sh" ]
+ENTRYPOINT [ "sh", "/opt/app/policy/pdp-sim/bin/pdp-sim.sh" ]