Spaces:
Runtime error
Runtime error
Download backend/Dockerfile from Shipmaster1/PythonicRAGReact: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/spaces/Shipmaster1/PythonicRAGReact/resolve/main/backend/Dockerfile
- Command line
-
hf download hf://spaces/Shipmaster1/PythonicRAGReact/backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Shipmaster1/PythonicRAGReact/resolve/main/backend/Dockerfile
501 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| COPY backend/requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy source files | |
| COPY backend/ . | |
| # Install aimakerspace package in development mode | |
| RUN pip install -e . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Start the app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |