summaryrefslogtreecommitdiffstats
path: root/packages/docker/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/docker/src')
-rw-r--r--packages/docker/src/main/docker/Dockerfile18
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/docker/src/main/docker/Dockerfile b/packages/docker/src/main/docker/Dockerfile
index 20081f71..20db684f 100644
--- a/packages/docker/src/main/docker/Dockerfile
+++ b/packages/docker/src/main/docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM onap/policy-jdk-debian:2.0.1
+FROM onap/policy-jdk-alpine:2.0.2
LABEL maintainer="Policy Team"
@@ -10,6 +10,7 @@ ARG MVN_RELEASE_REPO_URL
ARG http_proxy
ENV BUILD_VERSION_DROOLS $BUILD_VERSION_DROOLS
+ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk
ENV POLICY_INSTALL $POLICY_INSTALL
ENV POLICY_INSTALL_INIT $POLICY_INSTALL/config
ENV POLICY_LOGS $POLICY_LOGS
@@ -20,16 +21,15 @@ ENV MVN_SNAPSHOT_REPO_URL $MVN_SNAPSHOT_REPO_URL
ENV MVN_RELEASE_REPO_URL $MVN_RELEASE_REPO_URL
ENV http_proxy $http_proxy
-RUN apt-get update \
- && apt-get install -y \
- httpie \
- python3 python3-pip \
- mariadb-client \
- file bash-completion \
- net-tools netcat sudo \
+RUN apk update && \
+ apk add --no-cache python3 \
+ mariadb-client py3-pip \
+ file bash-completion dpkg httpie \
+ net-tools netcat-openbsd sudo less vim openssl \
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 0 \
&& update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 \
- && pip install http-prompt
+ && pip install --upgrade setuptools http-prompt \
+ && rm -r /root/.cache
RUN mkdir -p $POLICY_CONFIG $POLICY_LOGS $POLICY_INSTALL_INIT && \
chown -R policy:policy $POLICY_HOME $POLICY_LOGS $POLICY_INSTALL