From 0cc211b6f126abc45be1c42750a821df20b2d6ca Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Thu, 16 Jan 2020 16:32:58 -0500 Subject: Use alpine image for xacml-pdp Issue-ID: POLICY-1586 Signed-off-by: Jim Hahn Change-Id: I4ed9fa70dd95d061f0cd4c81822853b92387e2f6 --- packages/policy-xacmlpdp-docker/src/main/docker/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'packages/policy-xacmlpdp-docker/src/main/docker') 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 -- cgit 1.2.3-korg