Skip to content

Add .dockerignore files for backend services #37

@coderabbitai

Description

@coderabbitai

Description

Add .dockerignore files for the services/ingest/ and services/analyzer/ directories to optimize Docker build context and reduce image sizes.

Context

When building Docker images, all files in the build context are sent to the Docker daemon. A .dockerignore file excludes unnecessary files, speeding up builds and reducing image size.

Tasks

  • Create services/ingest/.dockerignore
  • Create services/analyzer/.dockerignore
  • Exclude common patterns:
    • __pycache__/
    • *.pyc
    • *.pyo
    • *.pyd
    • .pytest_cache/
    • .coverage
    • *.log
    • .env
    • tests/

Acceptance Criteria

  • Both services have .dockerignore files
  • Files follow Python best practices
  • Test by building images: docker build -f services/ingest/Dockerfile .

Resources

Estimated Time

15-30 minutes

Metadata

Metadata

Assignees

No one assigned

    Labels

    dockerPull requests that update docker codedocumentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions