-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.static
More file actions
62 lines (58 loc) · 1.25 KB
/
Copy pathDockerfile.static
File metadata and controls
62 lines (58 loc) · 1.25 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
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:edge AS build
RUN apk add --no-cache \
crystal \
shards \
gc-dev \
gc-static \
pcre2-dev \
pcre2-static \
yaml-dev \
yaml-static \
openssl-dev \
openssl-libs-static \
libxml2-dev \
libxml2-static \
zlib-dev \
zlib-static \
xz-dev \
xz-static \
git \
cmake \
libtool \
m4 \
automake \
autoconf \
make \
linux-headers \
libjpeg-turbo-static
WORKDIR /app
RUN rm -rf alsa-lib ogg opus
RUN git clone https://github.com/alsa-project/alsa-lib.git
WORKDIR /app/alsa-lib
RUN git checkout v1.2.14
RUN which libtoolize
RUN libtoolize --force --copy --automake
RUN aclocal
RUN autoheader
RUN automake --foreign --copy --add-missing
RUN autoconf
RUN ./configure --enable-shared=no --enable-static=yes --disable-dependency-tracking
RUN make
RUN cp src/.libs/libasound.a /usr/lib
WORKDIR /app
RUN git clone https://gitlab.xiph.org/xiph/ogg
WORKDIR /app/ogg
RUN mkdir build
WORKDIR /app/ogg/build
RUN cmake ..
RUN make
RUN cp libogg.a /usr/lib
WORKDIR /app
RUN git clone https://github.com/xiph/opus.git
WORKDIR /app/opus
RUN git checkout v1.5.2
RUN mkdir build
WORKDIR /app/opus/build
RUN cmake ..
RUN make
RUN cp libopus.a /usr/lib