Mieszko Makuch commited on
Commit ·
d6f9fe0
1
Parent(s): f26343d
Configure AnythingLLM Docker for Hugging Face Spaces
Browse files- Create proper Dockerfile with user permissions for HF Spaces
- Configure AnythingLLM to run on port 7860
- Set up environment variables for AnythingLLM
- Update README.md with app_port configuration
- Remove incorrectly named app.py file
Files changed (3)
- DockerfileAdded+24
- README.md+1
- app.pyDeleted-11
123456789101112131415161718192021222324FROM mintplexlabs/anythingllm:latest
# Create user with ID 1000 for Hugging Face SpacesRUN useradd -m -u 1000 user
# Set environment variables for AnythingLLMENV PORT=7860ENV SERVER_PORT=7860ENV STORAGE_DIR=/dataENV DISABLE_TELEMETRY=trueENV NO_DEBUG=true
# Create data directory with proper permissionsRUN mkdir -p /data && \ chown -R user:user /data
# Set working directory to user's homeWORKDIR /home/user
# Switch to userUSER user
# AnythingLLM already has its ENTRYPOINT/CMD configured# The base image will handle starting the application on the configured port3 unmodified lines4567893 unmodified linescolorFrom: yellowcolorTo: purplesdk: dockerpinned: falseshort_description: anythingllm---3 unmodified lines456789103 unmodified linescolorFrom: yellowcolorTo: purplesdk: dockerapp_port: 7860pinned: falseshort_description: anythingllm---
1234567891011FROM mintplexlabs/anythingllm:latest
# Hugging Face Docker Spaces oczekują, że aplikacja słucha na porcie 7860ENV PORT=7860
# Katalog na dane AnythingLLMENV STORAGE_DIR=/dataRUN mkdir -p /data
# Obraz AnythingLLM ma już swój ENTRYPOINT/CMD,# więc nic więcej nie musimy tu robić.DockerfileAdded+24
README.md+1
app.pyDeleted-11