mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
c4ff0cf58c
Signed-off-by: Jess Frazelle <me@jessfraz.com>
38 lines
885 B
Docker
38 lines
885 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
|
|
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" ]
|