Spaces:
Sleeping
Sleeping
File size: 609 Bytes
2aa7908 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # 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"]
|