summaryrefslogtreecommitdiffstats
path: root/packages/policy-pap-docker/src
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-01-16 11:52:45 -0500
committerJim Hahn <jrh3@att.com>2020-01-16 16:37:06 -0500
commit1fdc00a18235a4ffc1efb9750f5a32093591e6d8 (patch)
tree9732bfd1512d80676a27af3c63ed553a04d9b4ba /packages/policy-pap-docker/src
parent78d7bb2bacba6b2faff8cf27cd518ad501a80568 (diff)
Use alpine image for pap
Issue-ID: POLICY-1586 Change-Id: Ibd7254a88965ba9c029feaff919a4a396ad7f686 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'packages/policy-pap-docker/src')
-rw-r--r--packages/policy-pap-docker/src/main/docker/Dockerfile7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/policy-pap-docker/src/main/docker/Dockerfile b/packages/policy-pap-docker/src/main/docker/Dockerfile
index 99661d20..9eef8bc1 100644
--- a/packages/policy-pap-docker/src/main/docker/Dockerfile
+++ b/packages/policy-pap-docker/src/main/docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM onap/policy-jre-debian
+FROM onap/policy-jre-alpine
LABEL maintainer="Policy Team"
@@ -8,9 +8,8 @@ ENV POLICY_LOGS=$POLICY_LOGS
ENV POLICY_HOME=$POLICY_HOME/pap
RUN mkdir -p $POLICY_HOME $POLICY_LOGS $POLICY_HOME/bin && \
- chown -R policy:policy $POLICY_HOME $POLICY_LOGS
-
-RUN mkdir /packages
+ chown -R policy:policy $POLICY_HOME $POLICY_LOGS && \
+ mkdir /packages
COPY /maven/* /packages
RUN tar xvfz /packages/policy-pap.tar.gz --directory $POLICY_HOME \
&& rm /packages/policy-pap.tar.gz