Mold: Flask app that uses Celery
In the docker-compose.yml the celery container makes use of
celery:
container_name: celery
build:
context: .
dockerfile: Dockerfile.backend
command: ["celery", "-A", "lti_project", "worker", "--loglevel=info"]
volumes:
- .:/app
depends_on:
- redis
When the cookie mold is created, there is no file Dockerfile.backend
make start-attached
Starting udoit-captions-lti in attached mode
docker compose -f docker-compose.yml up
[+] Building 0.2s (4/4) FINISHED
=> [internal] load local bake definitions 0.0s
=> => reading from stdin 1.26kB 0.0s
=> [celery internal] load build definition from Dockerfile.backend 0.0s
=> => transferring dockerfile: 2B 0.0s
=> [lti internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 342B 0.0s
=> CANCELED [lti internal] load metadata for docker.io/library/python:3.12 0.0s
[+] up 0/2
⠙ Image udoit-captions-lti-lti Building 0.3s
⠙ Image udoit-captions-lti-celery Building 0.3s
target celery: failed to solve: failed to read dockerfile: open Dockerfile.backend: no such file or directory
View build details: docker-desktop://dashboard/build/default/default/ol6qwt5qvs3cdjj1yqvk5fu7u
make: *** [start-attached] Error 1
If I comment out the celery container, the project proceeds with the build.
Mold: Flask app that uses Celery
In the
docker-compose.ymlthecelerycontainer makes use ofWhen the cookie mold is created, there is no file
Dockerfile.backendIf I comment out the
celerycontainer, the project proceeds with the build.