forked from sdcb/PaddleSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (15 loc) · 767 Bytes
/
Dockerfile
File metadata and controls
20 lines (15 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ghcr.io/shimat/opencvsharp/ubuntu22-dotnet6sdk-opencv4.7.0:20230114 as builder
WORKDIR /
# Install wget dependencies
RUN apt-get update && apt-get -y install --no-install-recommends wget \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
RUN wget -q https://paddle-inference-lib.bj.bcebos.com/2.5.0/cxx_c/Linux/CPU/gcc8.2_avx_mkl/paddle_inference_c.tgz && \
tar -xzf /paddle_inference_c.tgz && \
find /paddle_inference_c -mindepth 2 -name *.so* -print0 | xargs -0 -I {} mv {} /usr/lib && \
ls /usr/lib/*.so* && \
rm -rf /paddle_inference_c && \
rm paddle_inference_c.tgz
########## Final image ##########
FROM ghcr.io/shimat/opencvsharp/ubuntu22-dotnet6sdk-opencv4.7.0:20230114 as final
COPY --from=builder /usr/lib /usr/lib