Spaces:
Sleeping
Sleeping
Download Dockerfile from BalaMindlens/render-worker: direct link, hf CLI and curl.
- Browser
- Download file 609 Bytes
-
https://huggingface.co/spaces/BalaMindlens/render-worker/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/BalaMindlens/render-worker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/BalaMindlens/render-worker/resolve/main/Dockerfile
609 Bytes
| # HF Space — CPU frame-extraction worker (FastAPI, no GPU) | |
| # Hardware: CPU Basic (free tier) | |
| # Secrets: S3_BUCKET, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, | |
| # S3_ENDPOINT_URL (optional), S3_REGION (optional), | |
| # S3_ASSESSMENT_PREFIX (optional, default: industrial/assessments) | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update -qq && \ | |
| apt-get install -y -qq ffmpeg libgl1 libglib2.0-0 && \ | |
| rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |