summaryrefslogtreecommitdiffstats
path: root/kubernetes/readiness/docker/init/Dockerfile
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2019-05-13 10:36:37 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-13 10:36:37 +0000
commit3790a7acab344b65ce0133f3dd7f0a85cd43201d (patch)
tree497599a4097e1464fc4ec4beae97853e13b58404 /kubernetes/readiness/docker/init/Dockerfile
parentee8b6f29ab59305c232dac5979f3966ebdddb5b6 (diff)
parentd0101df34803d6266c8ae3be2be3befd79e459de (diff)
Merge "Minimize container image"
Diffstat (limited to 'kubernetes/readiness/docker/init/Dockerfile')
-rw-r--r--kubernetes/readiness/docker/init/Dockerfile10
1 files changed, 3 insertions, 7 deletions
diff --git a/kubernetes/readiness/docker/init/Dockerfile b/kubernetes/readiness/docker/init/Dockerfile
index 7214e04174..b060915354 100644
--- a/kubernetes/readiness/docker/init/Dockerfile
+++ b/kubernetes/readiness/docker/init/Dockerfile
@@ -1,17 +1,12 @@
-from ubuntu:16.04
+FROM python:2-alpine
ENV no_proxy "localhost,127.0.0.1,.cluster.local,$KUBERNETES_SERVICE_HOST"
# Setup Corporate proxy
ENV https_proxy ${HTTPS_PROXY}
ENV http_proxy ${HTTP_PROXY}
-# Additional packages
-RUN apt-get update
-RUN apt-get install -y apt-utils git wget curl dnsutils python python-pip jq net-tools coreutils vim
-
RUN pip install requests pyyaml kubernetes
-
ENV CERT="/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
ENV TOKEN="/var/run/secrets/kubernetes.io/serviceaccount/token"
@@ -21,4 +16,5 @@ RUN chmod a+x /root/ready.py
COPY job_complete.py /root/job_complete.py
RUN chmod a+x /root/job_complete.py
-ENTRYPOINT /root/ready.py
+ENTRYPOINT ["/root/ready.py"]
+CMD [""] \ No newline at end of file