mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-30 13:28:30 +01:00
e6953b7a85
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
38 lines
898 B
Docker
38 lines
898 B
Docker
# Pulseaudio
|
|
#
|
|
# docker run -d \
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
|
# --device /dev/snd \
|
|
# --name pulseaudio \
|
|
# -p 4713:4713 \
|
|
# -v /var/run/dbus:/var/run/dbus \
|
|
# -v /etc/machine-id:/etc/machine-id \
|
|
# jess/pulseaudio
|
|
#
|
|
FROM debian:sid-slim
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
alsa-utils \
|
|
libasound2 \
|
|
libasound2-plugins \
|
|
pulseaudio \
|
|
pulseaudio-utils \
|
|
--no-install-recommends \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV HOME /home/pulseaudio
|
|
RUN useradd --create-home --home-dir $HOME pulseaudio \
|
|
&& usermod -aG audio,pulse,pulse-access pulseaudio \
|
|
&& chown -R pulseaudio:pulseaudio $HOME
|
|
|
|
WORKDIR $HOME
|
|
USER pulseaudio
|
|
|
|
COPY default.pa /etc/pulse/default.pa
|
|
COPY client.conf /etc/pulse/client.conf
|
|
COPY daemon.conf /etc/pulse/daemon.conf
|
|
|
|
ENTRYPOINT [ "pulseaudio" ]
|
|
CMD [ "--log-level=4", "--log-target=stderr", "-v" ]
|