Spaces:
Runtime error
Runtime error
Download Dockerfile from services2/retriever: direct link, hf CLI and curl.
- Browser
- Download file 551 Bytes
-
https://huggingface.co/spaces/services2/retriever/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/services2/retriever/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/services2/retriever/resolve/main/Dockerfile
551 Bytes
| # Use official Python image | |
| FROM python:3.10-slim | |
| # Set environment variables | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| # Set work directory | |
| WORKDIR /app | |
| # Copy all files into the container | |
| COPY . /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Expose port for Hugging Face | |
| EXPOSE 7860 | |
| # Start the Flask app | |
| CMD ["python", "app.py"] | |