summaryrefslogtreecommitdiffstats
path: root/kubernetes/readiness/src/main/docker/Dockerfile
blob: 638e8efd67cceb75ca21a9cc02fc5e5483968006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3-alpine3.9

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}

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"

COPY maven/ /root/
RUN chmod -R a+x /root/

ENTRYPOINT ["/root/ready.py"]
CMD [""]