-
Notifications
You must be signed in to change notification settings - Fork 342
Open
Description
Description
Currently, the Dockerfiles(Dockerfile, Dockerfile.kvaware) copies the entire src/ directory which includes test and example files that are not needed in the production environment. This unnecessarily increases the Docker image size and includes code that should only be present in development environments.
Current Structure in src/:
examples/gateway_inference_extension/tests/vllm_router/
Problem
The current Dockerfile includes the following line:
COPY src/ src/This copies all subdirectories including tests and examples which are not required for the production application. This:
- Increases the Docker image size unnecessarily
- Includes development/test code in production environments
- Deviates from Docker best practices of maintaining minimal production images
Proposed Solution
- Modify the Dockerfile to only copy required production code:
COPY src/vllm_router/ src/vllm_router/
COPY src/gateway_inference_extension/ src/gateway_inference_extension/- Consider restructuring the project to separate production code from development resources
Benefits
- Reduced Docker image size
- Cleaner production environment
- Better separation of concerns between production and development code
- Follows Docker best practices for production images
Metadata
Metadata
Assignees
Labels
No labels