FROM python:3.12-slim WORKDIR /app RUN pip install --no-cache-dir httpx uvicorn starlette COPY server.py . RUN mkdir -p /data ENV PORT=8500 EXPOSE 8500 HEALTHCHECK --interval=30s --timeout=5s --start-period=10s \ CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8500/health', timeout=5)" CMD ["python3", "server.py"]