Spaces:
Running
Running
File size: 677 Bytes
9c950b3 a0aebc5 9c950b3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
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"] |