pulseaudio/Dockerfile

47 lines
1.8 KiB
Docker
Raw Normal View History

2018-06-19 22:12:16 +00:00
FROM ubuntu:bionic
2016-03-23 20:42:58 +00:00
2018-06-19 22:12:16 +00:00
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
2016-03-23 20:42:58 +00:00
2018-06-19 22:12:16 +00:00
# libudev-dev
# libx11-xcb-dev libice-dev libsm-dev libxtst-dev dbus-x11
# libsystemd-dev
# libglib2.0-dev
2016-03-23 20:42:58 +00:00
2018-06-19 22:12:16 +00:00
RUN useradd -u 1000 -m -d /home/user -s /bin/sh user && \
usermod -aG audio user
2016-03-23 20:42:58 +00:00
2018-06-19 22:12:16 +00:00
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
2016-03-23 20:42:58 +00:00
2018-06-19 22:12:16 +00:00
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
2016-03-23 20:42:58 +00:00
2018-06-19 22:12:16 +00:00
COPY [ "default.pa", "client.conf", "daemon.conf", "/etc/pulse/" ]
COPY [ "avahi-daemon.conf", "/etc/avahi/" ]
COPY [ "entrypoint.sh", "/" ]
ENTRYPOINT ["/entrypoint.sh"]
2016-03-23 20:42:58 +00:00
2018-06-19 22:12:16 +00:00
LABEL maintainer="andrey.arapov@nixaid.com"