Michal Kobus | eae37b6 | 2022-05-13 12:55:10 +0200 | [diff] [blame^] | 1 | FROM python:3.9.12-alpine3.15 |
Michal Kobus | 14e835b | 2019-04-11 14:25:27 +0200 | [diff] [blame] | 2 | |
Michal Kobus | eae37b6 | 2022-05-13 12:55:10 +0200 | [diff] [blame^] | 3 | LABEL build_date="2022-05-13" |
Oleksii Molchanov | 188adb5 | 2022-02-03 18:30:00 +0200 | [diff] [blame] | 4 | |
| 5 | RUN apk upgrade --update |
| 6 | |
Michal Kobus | 14e835b | 2019-04-11 14:25:27 +0200 | [diff] [blame] | 7 | WORKDIR /usr/src/app |
Michal Kobus | d7a81db | 2021-07-23 16:38:44 +0200 | [diff] [blame] | 8 | COPY requirements.txt /usr/src/app/ |
| 9 | RUN pip install -r requirements.txt |
Michal Kobus | 14e835b | 2019-04-11 14:25:27 +0200 | [diff] [blame] | 10 | |
| 11 | EXPOSE 9206 |
| 12 | |
| 13 | ENTRYPOINT ["python", "-u", "/usr/local/bin/prometheus-es-exporter"] |