Tinger 2 jaren geleden
bovenliggende
commit
a0335e9839
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      Dockerfile

+ 1 - 0
Dockerfile

@@ -8,6 +8,7 @@ ARG tuna=https://pypi.tuna.tsinghua.edu.cn/simple
 
 RUN pip install --no-cache-dir --upgrade pip -i $tuna && \
  pip install --no-cache-dir -r requires.txt -i $tuna && \
+ sed -i "s@http://deb.debian.org@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list && \
  apt update && apt install -y opencv-python-headless --no-install-recommends && \
  apt-get clean && rm -rf /var/lib/apt/lists/*