mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
Docker 构建时添加 PyPi 镜像源
This commit is contained in:
parent
d7675cdf23
commit
11943d0345
@ -79,7 +79,7 @@ RUN pacman --noconfirm --ask=4 -Syy \
|
|||||||
&& rm -rf /var/cache/pacman/pkg/*
|
&& rm -rf /var/cache/pacman/pkg/*
|
||||||
|
|
||||||
COPY testenv/requirements.txt requirements.txt
|
COPY testenv/requirements.txt requirements.txt
|
||||||
RUN pip install --break-system-packages -r requirements.txt
|
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && pip install --break-system-packages -r requirements.txt
|
||||||
|
|
||||||
# https://stackoverflow.com/questions/57534295
|
# https://stackoverflow.com/questions/57534295
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user