Spaces:
Running
Running
FROM python:3.11-slim | |
ENV PYTHONDONTWRITEBYTECODE=1 \ | |
PYTHONUNBUFFERED=1 | |
WORKDIR /app | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
ca-certificates curl && \ | |
rm -rf /var/lib/apt/lists/* | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY main.py . | |
EXPOSE 8000 | |
# Required at runtime: | |
# HF_TOKEN=hf_xxx (works with provider="fal-ai") | |
# UPLOAD_ACCESS_TOKEN=NAI-... (your Snapzion token) | |
# Optional: | |
# WAN_MODEL="Wan-AI/Wan2.2-T2V-A14B" | |
# UPLOAD_URL="https://upload.snapzion.com/api/public-upload" | |
# GEN_TIMEOUT_SEC=900 | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] |