StreamGuardNew / Dockerfile
NickH01's picture
Update Dockerfile
38d7b4b verified
raw
history blame contribute delete
636 Bytes
# Dockerfile
FROM python:3.11-slim
# Dipendenze base
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl && rm -rf /var/lib/apt/lists/*
# Installa MediaFlow Proxy
# (puoi fissare una versione specifica, es. ==2.1.2)
RUN pip install --no-cache-dir mediaflow-proxy
# Vars: Spaces espone $PORT; tu imposti sicurezza e trust dei proxy
ENV PORT=7860 \
API_PASSWORD=Aipued6m \
FORWARDED_ALLOW_IPS="*"
# Espone la porta attesa da Spaces
EXPOSE 7860
# Avvia FastAPI su $PORT
CMD uvicorn mediaflow_proxy.main:app \
--host 0.0.0.0 --port ${PORT} --workers 2 \
--forwarded-allow-ips "*"