gaunernst commited on
Commit
254fb1c
1 Parent(s): 71a9e68

update apt-get before install

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -2,9 +2,13 @@ FROM python:3.10
2
 
3
  ARG PIP_NO_CACHE_DIR=1
4
 
5
- RUN apt install tesseract-ocr
 
 
 
6
  RUN wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb \
7
- && dpkg -i libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb
 
8
 
9
  RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
10
  RUN pip install paddlepaddle==2.5.1 -i https://mirror.baidu.com/pypi/simple
 
2
 
3
  ARG PIP_NO_CACHE_DIR=1
4
 
5
+ RUN apt-get update \
6
+ && apt-get install -y tesseract-ocr \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  RUN wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb \
10
+ && dpkg -i libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb \
11
+ && rm libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb
12
 
13
  RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
14
  RUN pip install paddlepaddle==2.5.1 -i https://mirror.baidu.com/pypi/simple