From 85c8d2dc31b84cb865c424a9c37b701ebfb3d21f Mon Sep 17 00:00:00 2001 From: lyc8503 <36782264+lyc8503@users.noreply.github.com> Date: Mon, 18 Apr 2022 00:07:22 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9431241..37a7f72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.8-buster +FROM python:3.8-slim-buster RUN mkdir /app @@ -10,8 +10,8 @@ RUN cd /app \ && pip3 install --no-cache-dir -r requirements.txt --extra-index-url https://pypi.douban.com/simple/ \ && rm -rf /tmp/* && rm -rf /root/.cache/* \ && sed -i 's#http://deb.debian.org#http://mirrors.aliyun.com/#g' /etc/apt/sources.list\ - && apt-get --allow-releaseinfo-change update && apt install libgl1-mesa-glx -y + && apt-get --allow-releaseinfo-change update && apt install libgl1-mesa-glx libglib2.0-0 -y WORKDIR /app -CMD ["python3", "ocr_server.py", "--port", "9898", "--ocr", "--det"] \ No newline at end of file +CMD ["python3", "ocr_server.py", "--port", "9898", "--ocr", "--det"]