FROM python:3.6 WORKDIR /Publisher RUN pip install paho-mqtt COPY publisher.py . CMD ["python", "-u", "publisher.py"]