FROM python:3.10 WORKDIR /app COPY . /app RUN pip install --no-cache-dir -r requirements.txt EXPOSE 8000 RUN apt-get update && \ apt-get install -y --no-install-recommends \ libgl1-mesa-glx \ tzdata && \ ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ dpkg-reconfigure -f noninteractive tzdata && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* CMD ["python", "app.py"]