Use alpine image for xacml-pdp
Issue-ID: POLICY-1586
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I4ed9fa70dd95d061f0cd4c81822853b92387e2f6
diff --git a/packages/policy-xacmlpdp-docker/src/main/docker/Dockerfile b/packages/policy-xacmlpdp-docker/src/main/docker/Dockerfile
index 63a1513..ec26c83 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 @@
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