blob: b82885b7c832d8ddae3779c469e2bcc04c08dd68 [file] [log] [blame]
Michal Kobus14e835b2019-04-11 14:25:27 +02001# Pin to 3.6, as prometheus-client has a memory leak in 3.7
2# https://github.com/prometheus/client_python/issues/340
3# TODO: unpin when patched prometheus-client version is released
4FROM python:3.6-slim
5
6WORKDIR /usr/src/app
7
8COPY setup.py /usr/src/app/
9RUN pip install .
10
11COPY prometheus_es_exporter/*.py /usr/src/app/prometheus_es_exporter/
12RUN pip install -e .
13
14COPY LICENSE /usr/src/app/
15COPY README.md /usr/src/app/
16
17EXPOSE 9206
18
19ENTRYPOINT ["python", "-u", "/usr/local/bin/prometheus-es-exporter"]