FROM registry.gitlab.com/fabinfra/fabaccess/bffh:v0.4.2 RUN apt update && apt install -y python3 python3-pip RUN pip3 install paho-mqtt==1.6.1 # this adds python3 to this version of the fabaccess bffh server # also installs paho-mqtt as it's required for https://gitlab.com/volkersfreunde/tasmota # https://pypi.org/project/paho-mqtt/#history # https://www.codewithjason.com/docker-hello-world-app/ helped me: # docker build --tag bffh-v0.4.2-with-python3-v2 -f bffh-v0.4.2-with-python3-dockerfile-v2 . # https://stackoverflow.com/questions/57528077/docker-compose-with-name-other-than-dockerfile # this might be another option # https://docs.docker.com/compose/compose-file/build/#dockerfile_inline #dockerfile_inline: | #FROM registry.gitlab.com/fabinfra/fabaccess/bffh:v0.4.2 #RUN apt update && apt install -y python3 python3-pipx #RUN pip3 install paho-mqtt # `docker compose downa and `docker compose build` https://github.com/docker/compose/issues/1487