From a16364db5a00ea779be3ac8449a242f631980885 Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Sun, 7 Jun 2015 07:12:11 -0700 Subject: [PATCH] add vlc Signed-off-by: Jessica Frazelle --- mpd/Dockerfile | 2 +- vlc/Dockerfile | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 vlc/Dockerfile diff --git a/mpd/Dockerfile b/mpd/Dockerfile index 752f682..7978e8d 100644 --- a/mpd/Dockerfile +++ b/mpd/Dockerfile @@ -26,7 +26,7 @@ run mkdir -p /var/lib/mpd/playlists \ && chown -R mpd /var/lib/mpd # my user needs the ability to mount -# because my music is in nfs mount +# because all my music is in a nfs mount RUN echo "mpd ALL=NOPASSWD: /usr/bin/mount, /sbin/mount.nfs, /usr/bin/umount" >> /etc/sudoers ENV HOME /home/mpd diff --git a/vlc/Dockerfile b/vlc/Dockerfile new file mode 100644 index 0000000..388d284 --- /dev/null +++ b/vlc/Dockerfile @@ -0,0 +1,29 @@ +# VLC media player +# +# docker run -d \ +# -v /etc/localtime:/etc/localtime:ro \ +# --device /dev/snd \ +# --device /dev/dri \ +# -v /tmp/.X11-unix:/tmp/.X11-unix \ +# -e DISPLAY=unix$DISPLAY \ +# --name vlc \ +# jess/vlc +# +FROM debian:sid +MAINTAINER Jessica Frazelle + +RUN apt-get update && apt-get install -y \ + libgl1-mesa-dri \ + libgl1-mesa-glx \ + vlc \ + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + +ENV HOME /home/vlc +RUN useradd --create-home --home-dir $HOME vlc \ + && chown -R vlc:vlc $HOME + +WORKDIR $HOME +USER vlc + +ENTRYPOINT [ "vlc" ]