summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-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