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"]