mirror of
https://github.com/kemko/keenetic-grafana-monitoring.git
synced 2026-01-01 07:35:42 +03:00
13 lines
449 B
Docker
13 lines
449 B
Docker
FROM python:3.8-alpine AS dependencies
|
|
COPY requirements.txt .
|
|
|
|
RUN pip install --no-cache-dir --user --no-warn-script-location -r requirements.txt
|
|
|
|
FROM python:3.8-alpine AS build-image
|
|
COPY --from=dependencies /root/.local /root/.local
|
|
|
|
COPY value_normalizer.py keentic_influxdb_exporter.py influxdb_writter.py keenetic_api.py /home/
|
|
COPY config/metrics.json /home/config/metrics.json
|
|
|
|
CMD [ "python", "-u", "/home/keentic_influxdb_exporter.py" ]
|