Spaces:
Running
Running
Download Dockerfile from EpicCoderGG/streamforge-api: direct link, hf CLI and curl.
- Browser
- Download file 567 Bytes
-
https://huggingface.co/spaces/EpicCoderGG/streamforge-api/resolve/e1c936b8aef29e223c856fc0c16126db14cab0a7/Dockerfile
- Command line
-
hf download hf://spaces/EpicCoderGG/streamforge-api@e1c936b8aef29e223c856fc0c16126db14cab0a7/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/EpicCoderGG/streamforge-api/resolve/e1c936b8aef29e223c856fc0c16126db14cab0a7/Dockerfile
567 Bytes
| FROM python:3.11-slim | |
| # Install Node.js 22 for Vyla SDK (server-side scraping) | |
| RUN apt-get update && apt-get install -y curl && \ | |
| curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \ | |
| apt-get install -y nodejs && \ | |
| apt-get clean && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Node.js dependencies (Vyla SDK) | |
| COPY package.json . | |
| RUN npm install --omit=dev | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |