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 ./defaults/.env /code/knx COPY ./defaults/export-addresses.csv /code/knx CMD ["python", "knx_monitor.py"] # CMD ["ls", "-lsrtaR"]