-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
Dockerfile
74 lines (68 loc) · 1.41 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
72
73
74
FROM ubuntu:22.04 AS jami-daemon
ARG DEBIAN_FRONTEND=noninteractive
ARG cmake_args
RUN apt-get update && apt-get install -y \
autoconf \
automake \
autopoint \
bison \
build-essential \
cmake \
curl \
git \
libarchive-dev \
libasio-dev \
libasound2-dev \
libdbus-1-dev \
libexpat1-dev \
libfmt-dev \
libgmp-dev \
nettle-dev \
libgnutls28-dev \
libjsoncpp-dev \
libmsgpack-dev \
libnatpmp-dev \
libopus-dev \
libpipewire-0.3-dev \
libpulse-dev \
libspeex-dev \
libspeexdsp-dev \
libssl-dev \
libsystemd-dev \
libsdbus-c++-bin \
libtool \
libudev-dev \
libupnp-dev \
libva-dev \
libvdpau-dev \
libvpx-dev \
libx264-dev \
libyaml-cpp-dev \
libhttp-parser-dev \
libwebrtc-audio-processing-dev \
libsecp256k1-dev \
guile-3.0-dev \
nasm \
pkg-config \
yasm \
libcppunit-dev \
sip-tester
# Install Node
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs && \
npm install -g node-gyp
# Install latest Swig (4.2)
WORKDIR /swig
RUN git clone https://github.com/swig/swig.git && \
cd swig && \
./autogen.sh && \
./configure && \
make -j$(nproc) && \
make install
WORKDIR /daemon
COPY . .
# Build the daemon
RUN mkdir -p build && \
cd build && \
cmake .. $cmake_args && \
make -j$(nproc)