Browse Source

python 3.9 without apt options

Tinger 2 years ago
parent
commit
e773e7149c
2 changed files with 2 additions and 5 deletions
  1. 1 4
      Dockerfile
  2. 1 1
      docker-compose.yml

+ 1 - 4
Dockerfile

@@ -7,9 +7,6 @@ COPY requires.cpu .
 ARG tuna=https://pypi.tuna.tsinghua.edu.cn/simple
 
 RUN pip install --no-cache-dir --upgrade pip -i $tuna && \
- pip install --no-cache-dir -r requires.cpu -i $tuna && \
- sed -i "s@http://deb.debian.org@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list && \
- apt update && apt install -y ffmpeg libsm6 libxext6 --no-install-recommends && \
- apt-get clean && rm -rf /var/lib/apt/lists/*
+ pip install --no-cache-dir -r requires.cpu -i
 
 CMD ["gunicorn", "app:app"]

+ 1 - 1
docker-compose.yml

@@ -4,7 +4,7 @@ services:
   PaddleOCR:
     build: .
     ports:
-      - "5050:80"
+      - "5050: 80"
     image: ocr:latest
     container_name: PaddleOCR
     restart: unless-stopped