Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
| 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
|