FROM python:latest WORKDIR /usr/local/bin COPY mqtt-log.py . RUN pip install --no-cache-dir paho-mqtt CMD ["python","-u","mqtt-log.py"]