基础镜像使用的是debian系统,修正下载命令行

This commit is contained in:
2024-10-12 10:48:06 +08:00
parent 7335553080
commit cc9d020008

View File

@@ -14,7 +14,7 @@ ENV PYTHONUNBUFFERED=1 \
# 安装依赖 # 安装依赖
COPY requirements.txt /app/requirements.txt COPY requirements.txt /app/requirements.txt
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone \ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone \
&& yum install mesa-libGL -y \ && apt-get update && apt-get install libgl1 \
&& pip install --no-cache-dir -r requirements.txt && pip install --no-cache-dir -r requirements.txt
# 将当前目录内容复制到容器的/app内 # 将当前目录内容复制到容器的/app内