-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile.ubuntu20.04_pulseaudio
29 lines (21 loc) · 1.16 KB
/
Dockerfile.ubuntu20.04_pulseaudio
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
FROM ubuntu:20.04 AS build
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential dpkg-dev libpulse-dev git autoconf libtool lsb-release curl sudo
RUN curl -s -L https://github.com/neutrinolabs/pulseaudio-module-xrdp/archive/v0.7.tar.gz | tar zx -C /opt/ \
&& mv /opt/pulseaudio-module-xrdp* /opt/pulseaudio-module-xrdp \
&& cd /opt/pulseaudio-module-xrdp \
&& ./scripts/install_pulseaudio_sources_apt.sh -d /opt/pulseaudio.src \
&& ./bootstrap \
&& ./configure PULSE_DIR=/opt/pulseaudio.src prefix=/usr \
&& make
####################################
FROM yama07/docker-ubuntu-lxde:20.04-xrdp_ja
COPY --from=build \
/opt/pulseaudio-module-xrdp/src/.libs/*.so /usr/libexec/pulseaudio-module-xrdp/
COPY --from=build \
/opt/pulseaudio-module-xrdp/instfiles/load_pa_modules.sh /usr/libexec/pulseaudio-module-xrdp/
COPY --from=build \
/opt/pulseaudio-module-xrdp/instfiles/pulseaudio-xrdp.desktop /etc/xdg/autostart/
RUN ln -s /usr/libexec/pulseaudio-module-xrdp/*.so /usr/lib/pulse-$(pulseaudio --version | awk '{print $2}')/modules/ \
&& echo "autospawn=yes" > /run/pulseaudio-enable-autospawn