apt配置国内镜像源

This commit is contained in:
2024-10-12 11:28:31 +08:00
parent d9b24e906d
commit 7b9d9ca589
2 changed files with 9 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ ENV PYTHONUNBUFFERED=1 \
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
# 安装依赖
COPY sources.list /etc/apt/sources.list
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 \