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
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
Description
Add
.dockerignorefiles for theservices/ingest/andservices/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
.dockerignorefile excludes unnecessary files, speeding up builds and reducing image size.Tasks
services/ingest/.dockerignoreservices/analyzer/.dockerignore__pycache__/*.pyc*.pyo*.pyd.pytest_cache/.coverage*.log.envtests/Acceptance Criteria
.dockerignorefilesdocker build -f services/ingest/Dockerfile .Resources
Estimated Time
15-30 minutes