mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
34 lines
733 B
Docker
34 lines
733 B
Docker
|
# Pulseaudio
|
||
|
#
|
||
|
# docker run -d \
|
||
|
# -v /etc/localtime:/etc/localtime:ro \
|
||
|
# --device /dev/snd \
|
||
|
# --name pulseaudio \
|
||
|
# -p 4713:4713 \
|
||
|
# jess/pulseaudio
|
||
|
#
|
||
|
FROM debian:sid
|
||
|
MAINTAINER Jessica Frazelle <jess@docker.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
|
||
|
|
||
|
ENTRYPOINT [ "pulseaudio" ]
|
||
|
CMD [ "--log-level=4", "--log-target=stderr", "-v" ]
|