Spaces:
Sleeping
Sleeping
Download Dockerfile from Hamza4100/ai-knowledge-assistant: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/Hamza4100/ai-knowledge-assistant/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Hamza4100/ai-knowledge-assistant/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Hamza4100/ai-knowledge-assistant/resolve/main/Dockerfile
438 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Create necessary directories | |
| RUN mkdir -p uploads | |
| # Note: For production, use volumes to persist: | |
| # - /app/uploads (uploaded documents) | |
| # - /app/conversations.db (SQLite database) | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |