Skip to content

Celery Dockerfile Backend Not Found #13

Description

@emanuelGitCodes

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions