From e04e788db20d092e3d29755b7461071f70189530 Mon Sep 17 00:00:00 2001 From: Alisen Date: Wed, 27 Oct 2021 23:58:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0c73e6d..49bf957 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,10 @@ FROM python:3.7-slim - -RUN sed -i 's#http://deb.debian.org#https://mirrors.163.com#g' /etc/apt/sources.list -RUN apt update && apt install -y libglib2.0-dev libsm6 libxrender1 libxext-dev supervisor build-essential \ - && rm -rf /var/lib/apt/lists/* - -RUN /usr/local/bin/python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple -COPY ./requirements.txt ./TrWebOCR/ -RUN pip3 install -r ./TrWebOCR/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ COPY . ./TrWebOCR - -RUN python3 ./TrWebOCR/install.py +RUN sed -i 's#http://deb.debian.org#https://mirrors.163.com#g' /etc/apt/sources.list \ + && apt update && apt install -y libglib2.0-dev libsm6 libxrender1 libxext-dev supervisor build-essential \ + && rm -rf /var/lib/apt/lists/* \ + && /usr/local/bin/python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple \ + && pip3 install -r ./TrWebOCR/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ \ + && python3 ./TrWebOCR/install.py EXPOSE 8089 CMD ["supervisord","-c","/TrWebOCR/supervisord.conf"]