-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
73 lines (58 loc) · 1.5 KB
/
Dockerfile
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
FROM --platform=linux/amd64 ubuntu:22.04 AS base
SHELL ["/bin/bash", "-c"]
ENV project=meeting-sdk-linux-sample
ENV cwd=/tmp/$project
WORKDIR $cwd
ARG DEBIAN_FRONTEND=noninteractive
# Install Dependencies
RUN apt-get update \
&& apt-get install -y \
build-essential \
ca-certificates \
cmake \
curl \
gdb \
git \
gfortran \
libopencv-dev \
libdbus-1-3 \
libgbm1 \
libgl1-mesa-glx \
libglib2.0-0 \
libglib2.0-dev \
libssl-dev \
libx11-dev \
libx11-xcb1 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-shape0 \
libxcb-shm0 \
libxcb-xfixes0 \
libxcb-xtest0 \
libgl1-mesa-dri \
libxfixes3 \
linux-libc-dev \
pkgconf \
tar \
unzip \
zip
# Install ALSA
RUN apt-get install -y libasound2 libasound2-plugins alsa alsa-utils alsa-oss
# Install Pulseaudio
RUN apt-get install -y pulseaudio pulseaudio-utils
FROM base AS deps
RUN curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh \
&& bash nodesource_setup.sh \
&& apt-get install -y nodejs
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
WORKDIR /opt
RUN git clone --depth 1 https://github.com/Microsoft/vcpkg.git \
&& ./vcpkg/bootstrap-vcpkg.sh -disableMetrics \
&& ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg \
&& vcpkg install vcpkg-cmake
FROM deps AS build
WORKDIR $cwd
ENTRYPOINT ["/tini", "--", "./bin/entry.sh"]