47 lines
1.8 KiB
Docker
47 lines
1.8 KiB
Docker
FROM ubuntu:bionic
|
|
|
|
RUN apt-get update
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
|
|
ca-certificates curl xz-utils patch intltool libtool pkg-config \
|
|
libltdl-dev libcap-dev libsndfile1-dev libdbus-1-dev libspeexdsp-dev \
|
|
libasound2-dev libavahi-client-dev avahi-daemon
|
|
|
|
# libudev-dev
|
|
# libx11-xcb-dev libice-dev libsm-dev libxtst-dev dbus-x11
|
|
# libsystemd-dev
|
|
# libglib2.0-dev
|
|
|
|
RUN useradd -u 1000 -m -d /home/user -s /bin/sh user && \
|
|
usermod -aG audio user
|
|
|
|
WORKDIR /home/user
|
|
USER user
|
|
RUN curl -sSLO https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-11.1.tar.xz && \
|
|
echo "f2521c525a77166189e3cb9169f75c2ee2b82fa3fcf9476024fbc2c3a6c9cd9e pulseaudio-11.1.tar.xz" | sha256sum -c && \
|
|
tar xf pulseaudio-11.1.tar.xz && \
|
|
curl -sSLO http://www.linuxfromscratch.org/patches/blfs/svn/pulseaudio-11.1-glibc_2.27_fix-1.patch && \
|
|
echo "68a9cc453fdd648a58097d53ee2c2d5e32793ea0673362e85d71b9b1f40eb52b pulseaudio-11.1-glibc_2.27_fix-1.patch" | sha256sum -c
|
|
|
|
RUN cd pulseaudio-11.1 && \
|
|
patch -Np1 -i ../pulseaudio-11.1-glibc_2.27_fix-1.patch && \
|
|
AUTOPOINT='intltoolize --automake --copy' autoreconf -fiv && \
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--disable-bluez4 \
|
|
--disable-bluez5 \
|
|
--disable-rpath && \
|
|
make -j$(getconf _NPROCESSORS_ONLN)
|
|
|
|
USER root
|
|
RUN cd /home/user/pulseaudio-11.1 && \
|
|
make install && \
|
|
rm -rf /home/user/pulseaudio-11.1
|
|
|
|
COPY [ "default.pa", "client.conf", "daemon.conf", "/etc/pulse/" ]
|
|
COPY [ "avahi-daemon.conf", "/etc/avahi/" ]
|
|
COPY [ "entrypoint.sh", "/" ]
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
LABEL maintainer="andrey.arapov@nixaid.com"
|