Spaces:
Sleeping
Sleeping
Download Dockerfile from EliramShemesh/Spender: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/spaces/EliramShemesh/Spender/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/EliramShemesh/Spender/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/EliramShemesh/Spender/resolve/main/Dockerfile
579 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies for psycopg2 | |
| RUN apt-get update && apt-get install -y \ | |
| libpq-dev \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy everything from current directory to /app | |
| # Since we are in server/ directory when building, we copy server content | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Set Python Path to include /app so "from models" etc work correctly | |
| ENV PYTHONPATH=/app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |