knx-monitor/Dockerfile

26 lines
533 B
Docker
Raw Normal View History

2022-12-19 12:24:47 +01:00
FROM python:3.10-alpine
WORKDIR /code/knx
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r /code/requirements.txt
ENV KNX_GATEWAY_IP=10.0.0.36
ENV KNX_TOPOLOGY=export-addresses.csv
ENV INFLUX_BUCKET=my_bucket
ENV INFLUX_ORG=example.com
ENV INFLUX_TOKEN=change_me
ENV INFLUX_URL=http://localhost:8086
COPY ./*.py /code/knx
COPY ./.env /code/knx
ENV CONFIG_STRUCTURE=/code/data/export-addresses.csv
VOLUME ["/code/data/export-addresses.csv", "/code/knx/.env"]
CMD ["python", "knx_monitor.py"]