aahmadzada | 0084e86 | 2022-10-27 14:59:15 +0400 | [diff] [blame] | 1 | FROM python:3.9.15-alpine3.16 |
Michal Kobus | 14e835b | 2019-04-11 14:25:27 +0200 | [diff] [blame] | 2 | |
Oleksii Molchanov | e663e47 | 2022-11-21 14:27:30 +0200 | [diff] [blame] | 3 | LABEL build_date="2022-11-21" |
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/ |
aahmadzada | 3625490 | 2023-11-07 13:13:31 +0400 | [diff] [blame] | 9 | RUN pip install --upgrade pip -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"] |