summaryrefslogtreecommitdiffstats
path: root/packages/policy-pap-docker/src
diff options
context:
space:
mode:
authorDmitry Puzikov <dmitry.puzikov@tieto.com>2019-03-25 17:04:12 +0100
committerDmitry Puzikov <dmitry.puzikov@tieto.com>2019-04-24 10:24:03 +0200
commit693d189d3cb7c438a3a04e59b9d90c6fc012438e (patch)
tree9490219524fb27661ab1dbce928f40f4807680bb /packages/policy-pap-docker/src
parent4ca155ec2ca6663826d749c7443b0249e703323e (diff)
Rebase image on policy-common-alpine
Issue-ID: INT-1002 Change-Id: I77191f96b308a246933aa6dbd3b4e596e0514983 Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
Diffstat (limited to 'packages/policy-pap-docker/src')
-rw-r--r--packages/policy-pap-docker/src/main/docker/Dockerfile22
1 files changed, 5 insertions, 17 deletions
diff --git a/packages/policy-pap-docker/src/main/docker/Dockerfile b/packages/policy-pap-docker/src/main/docker/Dockerfile
index 0870fbf5..4bff78e2 100644
--- a/packages/policy-pap-docker/src/main/docker/Dockerfile
+++ b/packages/policy-pap-docker/src/main/docker/Dockerfile
@@ -1,26 +1,14 @@
-FROM alpine:3.9
+FROM onap/policy-common-alpine:1.4.0
+
+LABEL maintainer="Policy Team"
-ARG HTTP_PROXY=${HTTP_PROXY}
-ARG HTTPS_PROXY=${HTTPS_PROXY}
-ARG BUILD_VERSION=${BUILD_VERSION}
ARG POLICY_LOGS=/var/log/onap/policy/pap
-ENV http_proxy $HTTP_PROXY
-ENV https_proxy $HTTPS_PROXY
-ENV BUILD_VERSION ${BUILD_VERSION}
ENV POLICY_LOGS ${POLICY_LOGS}
-
-ENV POLICY_HOME=/opt/app/policy
ENV POLICY_PAP_HOME=${POLICY_HOME}/pap
-RUN apk add --no-cache --update busybox-extras bash nss procps coreutils findutils grep \
- zip unzip curl wget openssh maven openjdk8 jq httpie py-pip
-
-RUN addgroup -S policy && \
- adduser -S --shell /bin/bash -G policy policy
-
-RUN mkdir -p ${POLICY_PAP_HOME} ${POLICY_LOGS} ${POLICY_HOME}/etc/ssl ${POLICY_PAP_HOME}/bin && \
- chown -R policy:policy ${POLICY_HOME} ${POLICY_PAP_HOME} ${POLICY_LOGS}
+RUN mkdir -p ${POLICY_PAP_HOME} ${POLICY_LOGS} ${POLICY_PAP_HOME}/bin && \
+ chown -R policy:policy ${POLICY_PAP_HOME} ${POLICY_LOGS}
RUN mkdir /packages
COPY /maven/* /packages