Spaces:
Sleeping
Sleeping
Download Dockerfile from UserArkham/spectrum-api-simple: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/UserArkham/spectrum-api-simple/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/UserArkham/spectrum-api-simple/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/UserArkham/spectrum-api-simple/resolve/main/Dockerfile
507 Bytes
| FROM python:3.9-slim | |
| WORKDIR /code | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements | |
| COPY requirements_simple.txt requirements.txt | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY simple_api.py api.py | |
| COPY allsides_data.csv . | |
| COPY blacklist.csv . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Start the API server | |
| CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"] |