TheOneHong commited on
Commit
d60ee11
·
verified ·
1 Parent(s): c7fd1ca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -4,10 +4,13 @@ FROM python:3.10
4
  ENV CUDA_VISIBLE_DEVICES=-1
5
  ARG PIP_NO_CACHE_DIR=1
6
 
7
- # libssl1.1 for PaddlePaddle
8
- RUN wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb \
9
- && dpkg -i libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb \
10
- && rm libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb
 
 
 
11
 
12
  RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
13
  RUN pip install paddlepaddle==2.5.1 -i https://mirror.baidu.com/pypi/simple
 
4
  ENV CUDA_VISIBLE_DEVICES=-1
5
  ARG PIP_NO_CACHE_DIR=1
6
 
7
+ # libssl1.1 for PaddlePaddle - 修复版本
8
+ RUN apt-get update && apt-get install -y wget ca-certificates && \
9
+ (apt-get install -y libssl1.1 || \
10
+ (wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb && \
11
+ dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb && \
12
+ rm libssl1.1_1.1.1f-1ubuntu2_amd64.deb)) && \
13
+ apt-get clean && rm -rf /var/lib/apt/lists/*
14
 
15
  RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
16
  RUN pip install paddlepaddle==2.5.1 -i https://mirror.baidu.com/pypi/simple