aboutsummaryrefslogtreecommitdiffstats
path: root/packages/policy-xacmlpdp-docker/src/main/docker
diff options
context:
space:
mode:
Diffstat (limited to 'packages/policy-xacmlpdp-docker/src/main/docker')
-rw-r--r--packages/policy-xacmlpdp-docker/src/main/docker/Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/policy-xacmlpdp-docker/src/main/docker/Dockerfile b/packages/policy-xacmlpdp-docker/src/main/docker/Dockerfile
index 63a15138..ec26c83e 100644
--- a/packages/policy-xacmlpdp-docker/src/main/docker/Dockerfile
+++ b/packages/policy-xacmlpdp-docker/src/main/docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM onap/policy-jre-debian
+FROM onap/policy-jre-alpine
LABEL maintainer="Policy Team"
@@ -7,8 +7,9 @@ ARG POLICY_LOGS=/var/log/onap/policy/pdpx
ENV POLICY_LOGS=$POLICY_LOGS
ENV POLICY_HOME=$POLICY_HOME/pdpx
-RUN apt-get install -y mariadb-client
-RUN mkdir -p $POLICY_HOME $POLICY_LOGS $POLICY_HOME/etc/ssl $POLICY_HOME/bin $POLICY_HOME/apps && \
+RUN apk update && \
+ apk add mariadb-client && \
+ mkdir -p $POLICY_HOME $POLICY_LOGS $POLICY_HOME/etc/ssl $POLICY_HOME/bin $POLICY_HOME/apps && \
chown -R policy:policy $POLICY_HOME $POLICY_LOGS && mkdir /packages
COPY /maven/* /packages