nano Dockerfile
add the following to it:
FROM python:3.8
#FROM python:3.7-alpine
RUN apt-get install libffi-dev libssl-dev
#RUN apt add --no-cache libffi-dev libssl-dev
RUN pip3 install python-miio
CMD [ "/usr/local/bin/miiocli", "" ]
build it:
docker build -t python-miio .
run it NB... include the host parameter otherwise device is not found!
docker run --network host --rm --name python-miio python-miio miiocli -d airpurifiermiot --ip 192.168.1.149 --token B1111111111111F518839DFE66699E157 status