Refactor Dockerfile and docker-compose to streamline environment variable configuration and remove redundant commands

This commit is contained in:
2025-09-28 22:10:22 +02:00
parent 070c91787d
commit 889a8707e7
2 changed files with 2 additions and 8 deletions

View File

@@ -13,8 +13,6 @@ services:
- ./data/llamacpp:/data
- ./models:/models # Mount models directory
environment:
# Configure llamactl to use llama-server from the base image
- LLAMACTL_LLAMACPP_COMMAND=llama-server
# Enable Docker mode for nested containers (if needed)
- LLAMACTL_LLAMACPP_DOCKER_ENABLED=false
deploy:
@@ -39,9 +37,6 @@ services:
- ./models:/models # Mount models directory
- ~/.cache/huggingface:/root/.cache/huggingface # HuggingFace cache
environment:
# Configure llamactl to use vllm from the base image
- LLAMACTL_VLLM_COMMAND=vllm
- LLAMACTL_VLLM_ARGS=serve
# Enable Docker mode for nested containers (if needed)
- LLAMACTL_VLLM_DOCKER_ENABLED=false
# vLLM specific environment variables