diff --git a/Dockerfile b/Dockerfile index c7d357a..5e8ad63 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # 使用官方的python镜像作为基础 -FROM python:3.10.15-slim-bookworm +FROM python:3.10.15-bookworm # 设置工作目录 WORKDIR /app @@ -14,7 +14,6 @@ ENV PYTHONUNBUFFERED=1 \ # 安装依赖 COPY requirements.txt /app/requirements.txt RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone \ - && apt-get update && apt-get install libgl1 \ && pip install --no-cache-dir -r requirements.txt # 将当前目录内容复制到容器的/app内