update parent,common references in policy/models pom
[policy/models.git] / models-sim / policy-models-sim-pdp / src / main / package / docker / Dockerfile
index 51e7eaa..d067cdd 100644 (file)
@@ -1,6 +1,6 @@
 #
 # ============LICENSE_START=======================================================
-#  Copyright (C) 2019 Nordix Foundation.
+#  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");
@@ -23,7 +23,7 @@
 # Docker file to build an image that runs the PDP simulator on Java 8 in alpine
 #
 
-FROM onap/policy-common-alpine:1.4.0
+FROM onap/policy-jre-alpine:2.6.1
 
 LABEL maintainer="Policy Team"
 
@@ -32,25 +32,9 @@ ARG POLICY_LOGS=/var/log/onap/policy/pdp-sim
 ENV POLICY_HOME=/opt/app/policy
 ENV POLICY_LOGS=${POLICY_LOGS}
 
-RUN apk add --no-cache --update \
-    bash \
-    nss \
-    procps \
-    coreutils \
-    findutils \
-    grep \
-    zip \
-    unzip \
-    curl \
-    wget \
-    openssh \
-    iproute2 \
-    iputils \
-    vim \
-    openjdk8
-
 # 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} \
@@ -71,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" ]