summaryrefslogtreecommitdiffstats
path: root/packages/docker/src
diff options
context:
space:
mode:
authorDmitry Puzikov <dmitry.puzikov@tieto.com>2019-03-25 15:59:53 +0100
committerDmitry Puzikov <dmitry.puzikov@tieto.com>2019-04-24 17:09:36 +0200
commitb38e59b1f797b15d0a3e1170e43a0db92216bbd0 (patch)
treea2bd9ebda934fdec032485f621423d9a8d7cbafb /packages/docker/src
parent52ee4af3ad37e2e89815ce8c3cc1e9fc1e6db603 (diff)
Rebase image on policy-common-alpine
Fix notes. Issue-ID: INT-1001 Change-Id: I91c2af3e16032078561e8b0bd5aa4250d449d8d6 Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
Diffstat (limited to 'packages/docker/src')
-rw-r--r--packages/docker/src/main/docker/Dockerfile26
1 files changed, 6 insertions, 20 deletions
diff --git a/packages/docker/src/main/docker/Dockerfile b/packages/docker/src/main/docker/Dockerfile
index 70c816694..66aff075e 100644
--- a/packages/docker/src/main/docker/Dockerfile
+++ b/packages/docker/src/main/docker/Dockerfile
@@ -1,29 +1,15 @@
-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
-ENV http_proxy $HTTP_PROXY
-ENV https_proxy $HTTPS_PROXY
-ENV BUILD_VERSION ${BUILD_VERSION}
ENV POLICY_LOGS ${POLICY_LOGS}
-ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk
-
-RUN apk --update add --no-cache busybox-extras \
- bash coreutils grep findutils \
- nss procps zip unzip curl \
- wget openssh maven jq \
- httpie py-pip openjdk8
-
-RUN adduser -S policy -s /bin/bash
-# install MariaDB client
-RUN apk --update add --no-cache mariadb-client
+RUN apk add --no-cache mariadb-client
-RUN mkdir -p /opt/app/policy /tmp/policy-install ${POLICY_LOGS} && \
- chown policy /opt/app/policy /tmp/policy-install ${POLICY_LOGS}
+RUN mkdir -p /tmp/policy-install ${POLICY_LOGS} && \
+ chown policy:policy /tmp/policy-install ${POLICY_LOGS}
WORKDIR /tmp/policy-install