-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.ubuntu-plugins-deps
More file actions
93 lines (74 loc) · 2.33 KB
/
Dockerfile.ubuntu-plugins-deps
File metadata and controls
93 lines (74 loc) · 2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
ARG BASE_IMAGE=wasmedge/wasmedge:latest
ARG UBUNTU_VER=20
FROM ${BASE_IMAGE} AS base
RUN apt-get update && \
apt-get install -y \
cargo \
libelf-dev \
libomp-dev \
libopenblas-dev \
libssl-dev \
pkg-config \
unzip \
yasm
RUN apt-get install -y \
libgrpc++-dev \
libgrpc-dev \
protobuf-compiler-grpc
# FFmpeg 6.1 (ubuntu 24.04)
FROM base AS deps-24
RUN apt-get install -y \
libavcodec-dev \
libavdevice-dev \
libavfilter-dev \
libavformat-dev \
libavutil-dev \
libswresample-dev \
libswscale-dev
# FFmpeg 6.0 (ubuntu 20.04, 22.04)
FROM base AS deps-20
WORKDIR /usr/local
COPY scripts/ffmpeg/install-ffmpeg-v6.0.sh .
RUN [ "/bin/bash", "install-ffmpeg-v6.0.sh" ]
ENV PKG_CONFIG_PATH=/usr/local/FFmpeg-n6.0/output/lib/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}
ENV LD_LIBRARY_PATH=/usr/local/FFmpeg-n6.0/output/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
FROM deps-20 AS deps-22
# Other dependencies
FROM deps-${UBUNTU_VER} AS deps-all
WORKDIR /root
COPY scripts/opencvmini/install-opencvmini.sh .
ENV OPENCV_VERSION="4.8.0"
RUN [ "/bin/bash", "install-opencvmini.sh" ]
COPY scripts/wasi-nn/install-pytorch.sh .
ENV PYTORCH_VERSION="2.5.1"
ENV PYTORCH_INSTALL_TO="/usr/local"
ENV Torch_DIR="/usr/local/libtorch"
RUN [ "/bin/bash", "install-pytorch.sh" ]
ARG UBUNTU_VER
COPY scripts/wasi-nn/install-openvino.sh .
COPY scripts/wasi-nn/install-openvino-genai.sh .
ENV OPENVINO_UBUNTU_VERSION=${UBUNTU_VER}
ENV OPENVINO_VERSION="2025.0.0"
ENV OPENVINO_YEAR="2025"
ENV OPENVINOGEN_VERSION="2025.0.0.0"
ENV OPENVINOGEN_YEAR="2025.0"
ENV OPENVINOGEN_DIRNAME="openvino_genai"
RUN [ "/bin/bash", "install-openvino.sh" ]
RUN [ "/bin/bash", "install-openvino-genai.sh" ]
RUN [ "ls", "-al" ]
RUN [ "/bin/bash", "-c", "echo \"source ./openvino_genai/setupvars.sh\" >> .bashrc" ]
COPY scripts/wasi-nn/install-onnxruntime.sh .
RUN [ "/bin/bash", "install-onnxruntime.sh" ]
COPY scripts/wasi-nn/install-chattts.sh .
RUN [ "/bin/bash", "install-chattts.sh" ]
### cleanup
FROM deps-all AS clean-apt
RUN rm -f \
install-opencvmini.sh \
install-ffmpeg-v6.0.sh \
install-pytorch.sh \
install-openvino.sh \
install-onnxruntime.sh \
install-openvino-genai.sh \
install-chattts.sh
RUN rm -rf /var/lib/apt/lists/*