-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.manylinux_2_28-plugins-deps
More file actions
44 lines (33 loc) · 1.33 KB
/
Dockerfile.manylinux_2_28-plugins-deps
File metadata and controls
44 lines (33 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
ARG BASE_IMAGE="wasmedge/wasmedge:manylinux_2_28_x86_64"
FROM ${BASE_IMAGE} AS base
WORKDIR /root
### deps for x86_64 ###
FROM base AS deps-amd64
RUN cd && (yum check-update || true) && \
yum install -y wget unzip zlib-devel zlib-static elfutils-libelf-devel
COPY scripts/wasi-nn/install-pytorch.sh .
ENV PYTORCH_VERSION="2.5.1"
ENV PYTORCH_INSTALL_TO="/root"
ENV Torch_DIR="/root/libtorch"
RUN [ "/bin/bash", "install-pytorch.sh", "--disable-cxx11-abi" ]
### deps for aarch64 ###
FROM base AS deps-arm64
RUN cd && (yum check-update || true) && \
yum install -y wget unzip zlib-devel zlib-static
### deps for all ###
FROM deps-${TARGETARCH} AS final
COPY scripts/opencvmini/install-opencvmini.sh .
ENV OPENCV_VERSION="4.8.0"
RUN [ "/bin/bash", "install-opencvmini.sh" ]
COPY scripts/wasi-crypto/build-openssl.sh .
ENV OpenSSL_DIR="/root/openssl-1.1.1n/openssl"
RUN [ "/bin/bash", "build-openssl.sh" ]
COPY scripts/ffmpeg/install-ffmpeg-v6.0.sh .
RUN [ "/bin/bash", "install-ffmpeg-v6.0.sh" ]
ENV PKG_CONFIG_PATH=/root/FFmpeg-n6.0/output/lib/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}
ENV LD_LIBRARY_PATH=/root/FFmpeg-n6.0/output/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
ENV OPENVINO_VERSION="2025.0.0"
ENV OPENVINO_YEAR="2025"
COPY scripts/wasi-nn/install-onnxruntime.sh .
RUN [ "/bin/bash", "install-onnxruntime.sh" ]
RUN yum clean all