knx-monitor/Dockerfile

22 lines
495 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
2022-12-20 15:39:41 +01:00
COPY ./defaults/.env /code/knx
COPY ./defaults/export-addresses.csv /code/knx
2022-12-19 12:24:47 +01:00
2022-12-20 15:39:41 +01:00
CMD ["python", "knx_monitor.py"]
# CMD ["ls", "-lsrtaR"]