From a54896655bf00c56a3d1cf3cba4a5770a231ae5b Mon Sep 17 00:00:00 2001 From: jiangwu10057 Date: Thu, 22 Jul 2021 15:59:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:docker=E9=95=9C=E5=83=8F=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E4=BE=9D=E8=B5=96libzbar-dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index af42b4d..75c5d0f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,9 @@ COPY . /youxiang ENV TZ=Asia/Shanghai RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone && \ - mkdir /youxiang && \ + sed -i "s@http://deb.debian.org@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list && \ + apt-get update +RUN apt-get install -y libzbar-dev --fix-missing && \ pip install -r requirements.txt ENTRYPOINT ["python", "/youxiang/main.py"]