demos.dockercompose.35services/bffh-v0.4.2-with-python3-dockerfile-v2

23 lines
965 B
Plaintext
Raw Normal View History

2024-07-11 08:46:40 +02:00
FROM registry.gitlab.com/fabinfra/fabaccess/bffh:v0.4.2
2024-07-11 08:58:59 +02:00
RUN apt update && apt install -y python3 python3-pip
2024-07-11 09:45:58 +02:00
RUN pip3 install paho-mqtt==1.6.1
2024-07-11 08:46:40 +02:00
# this adds python3 to this version of the fabaccess bffh server
2024-07-11 08:58:59 +02:00
# also installs paho-mqtt as it's required for https://gitlab.com/volkersfreunde/tasmota
2024-07-11 09:45:19 +02:00
# https://pypi.org/project/paho-mqtt/#history
2024-07-11 08:46:40 +02:00
# https://www.codewithjason.com/docker-hello-world-app/ helped me:
2024-07-11 09:18:08 +02:00
# docker build --tag bffh-v0.4.2-with-python3-v2 -f bffh-v0.4.2-with-python3-dockerfile-v2 .
2024-07-11 09:06:49 +02:00
# 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
2024-07-11 09:45:19 +02:00
#RUN pip3 install paho-mqtt
2024-07-11 09:18:08 +02:00
# `docker compose downa and `docker compose build` https://github.com/docker/compose/issues/1487