apt配置国内镜像源
This commit is contained in:
@@ -12,6 +12,7 @@ ENV PYTHONUNBUFFERED=1 \
|
|||||||
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
|
|
||||||
# 安装依赖
|
# 安装依赖
|
||||||
|
COPY sources.list /etc/apt/sources.list
|
||||||
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 \
|
||||||
&& apt-get update && apt-get install libgl1 \
|
&& apt-get update && apt-get install libgl1 \
|
||||||
|
|||||||
8
sources.list
Normal file
8
sources.list
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
deb https://mirrors.aliyun.com/debian/ bookworm main non-free contrib
|
||||||
|
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free contrib
|
||||||
|
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
|
||||||
|
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
|
||||||
|
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free contrib
|
||||||
|
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free contrib
|
||||||
|
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free contrib
|
||||||
|
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free contrib
|
||||||
Reference in New Issue
Block a user