FROM python:3.12-slim RUN apt-get update && \ apt-get install -y --no-install-recommends \ certbot \ python3-certbot-dns-cloudflare \ openssl \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir \ fastapi \ uvicorn[standard] \ httpx \ apscheduler \ pydantic \ google-auth \ requests \ tenacity WORKDIR /app COPY app/ /app/app/ RUN mkdir -p /data/certbot/config /data/certbot/work /data/certbot/logs /data/config EXPOSE 8000 CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]