更换基础镜像
This commit is contained in:
@@ -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内
|
||||
|
||||
Reference in New Issue
Block a user