aboutsummaryrefslogtreecommitdiffstats
path: root/packages/policy-api-docker/src/main
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-01-16 16:35:45 -0500
committerJim Hahn <jrh3@att.com>2020-01-16 16:35:45 -0500
commit97a361df3e4c47612044a2a8073d093448c072c7 (patch)
treec01e10262f408f886f533c4990fa7598d25b5949 /packages/policy-api-docker/src/main
parentf438459e4bd410f0de1d88d9da7da78c52547e44 (diff)
Use alpine image for policy-api
Issue-ID: POLICY-1586 Signed-off-by: Jim Hahn <jrh3@att.com> Change-Id: Ie6ea1f8dffdc6c859f5f09b726e0ed7a65b62f68
Diffstat (limited to 'packages/policy-api-docker/src/main')
-rw-r--r--packages/policy-api-docker/src/main/docker/Dockerfile7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/policy-api-docker/src/main/docker/Dockerfile b/packages/policy-api-docker/src/main/docker/Dockerfile
index ddc002ad..8d26bff1 100644
--- a/packages/policy-api-docker/src/main/docker/Dockerfile
+++ b/packages/policy-api-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/api
RUN mkdir -p $POLICY_LOGS $POLICY_HOME $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-api.tar.gz --directory $POLICY_HOME && \
rm /packages/policy-api.tar.gz