FROM python:3.12-slim WORKDIR /app RUN apt-get update && apt-get install -y --no-install-recommends fonts-noto-cjk && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir fastapi uvicorn requests pymysql matplotlib COPY app.py /app/app.py COPY static /app/static EXPOSE 8010 CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8010"]