更新Dockerfile:使用阿里云镜像源(完全替换所有源)
This commit is contained in:
parent
543bc4a114
commit
111b49ac93
@ -8,8 +8,9 @@ WORKDIR /app
|
||||
ENV TZ=Asia/Shanghai
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
# 使用阿里云镜像源
|
||||
RUN echo "deb https://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
|
||||
# 使用阿里云镜像源(完全替换所有源)
|
||||
RUN rm -f /etc/apt/sources.list.d/* && \
|
||||
echo "deb https://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
|
||||
echo "deb https://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
||||
echo "deb https://mirrors.aliyun.com/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user