FROM python:3.9 # Add sourcecode files ADD fanATserial2mqtt.py /root/ # handle dependencies RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir paho-mqtt pyserial CMD ["python", "/root/fanATserial2mqtt.py"] # Or enter the name of your unique directory and parameter set.