FROM python:3.12.5-slim # 设置时区 ENV TZ=Asia/Singapore RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY src /app/src COPY data /app/data CMD ["python", "src/main.py"]