From 324ec4d335e05366418c5c6e304d739dfb1bb0a9 Mon Sep 17 00:00:00 2001 From: joizhang Date: Sun, 11 Dec 2022 19:36:42 +0800 Subject: [PATCH] chore: update apt source --- Dockerfile | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5e37024..a9dae0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM python:3.8-slim-buster COPY . /var/www/src/face-recognition-server WORKDIR /var/www/src/face-recognition-server -RUN sed -i 's#http://deb.debian.org#https://mirror.sjtu.edu.cn#g' /etc/apt/sources.list +RUN sed -i 's#http://deb.debian.org#https://mirrors.tuna.tsinghua.edu.cn#g' /etc/apt/sources.list RUN apt update && apt install -y python3-opencv RUN pip3 install importlib-metadata poetry -i https://pypi.tuna.tsinghua.edu.cn/simple RUN poetry config virtualenvs.create false diff --git a/docker-compose.yml b/docker-compose.yml index 65f3615..bbe272b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,4 +21,4 @@ services: - .:/var/www/src/face-recognition-server links: - mysql:db1 -# command: "sh -c 'apt update && apt install -y vim make && tail -f main.py'" \ No newline at end of file + command: "sh -c 'apt update && apt install -y vim make && tail -f main.py'" \ No newline at end of file -- Gitee