FROM python:3.12-slim RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ dnsutils \ iproute2 \ net-tools \ procps \ ca-certificates \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY app.py /app/app.py RUN pip install --no-cache-dir fastapi uvicorn EXPOSE 7860 CMD ["python", "/app/app.py"]