EGDownloader-API / Dockerfile
alisaadhq's picture
Upload 4 files
a412233 verified
Raw
History Blame Contribute Delete
598 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY main.py .
RUN mkdir -p videos
# ── Env vars to set at runtime ──────────────────────────────────────────────
# PUBLIC_URL = https://your-api.hf.space (where n8n sends callbacks)
# GITHUB_TOKEN = ghp_...
# GITHUB_REPO = owner/repo
# N8N_TRIGGER_URL = https://egauto-n8n.hf.space/webhook/...
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]