mirror of
https://github.com/kemko/keenetic-grafana-monitoring.git
synced 2026-01-01 15:45:43 +03:00
* influxdb2 integration * using python alpine base image * add authorization, refactoring config * logging instead print, keenetic api exception handling when try to collect metrics, a little pep8
11 lines
397 B
Docker
11 lines
397 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/
|
|
|
|
CMD [ "python", "-u", "/home/keentic_influxdb_exporter.py" ] |