2016-12-14 20:56:15 +00:00
|
|
|
# Run VLC in a container
|
2017-06-23 07:13:01 +00:00
|
|
|
FROM ubuntu:zesty
|
2016-12-14 20:56:15 +00:00
|
|
|
MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
|
|
|
|
|
|
|
|
# To avoid problems with Dialog and curses wizards
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
# Install GTK, pulseaudio and fonts
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get -y --no-install-recommends install \
|
|
|
|
ca-certificates \
|
|
|
|
vlc && \
|
|
|
|
rm -rf -- /var/lib/apt/lists
|
|
|
|
|
|
|
|
# Workaround: pulseaudio client library likes to remove /dev/shm/pulse-shm-*
|
|
|
|
# files created by the host, causing sound to stop working.
|
|
|
|
# To fix this, we either want to disable the shm or mount /dev/shm
|
|
|
|
# in read-only mode when starting the container.
|
|
|
|
RUN echo "enable-shm = no" >> /etc/pulse/client.conf
|
|
|
|
|
|
|
|
ENV USER user
|
|
|
|
ENV GROUPS video,audio
|
|
|
|
ENV UID 1000
|
|
|
|
ENV HOME /home/$USER
|
|
|
|
|
|
|
|
ENV LC_ALL C.UTF-8
|
|
|
|
|
|
|
|
RUN useradd -u $UID -m -d $HOME -s /usr/sbin/nologin -G $GROUPS $USER
|
|
|
|
USER $USER
|
|
|
|
WORKDIR $HOME
|
|
|
|
ENTRYPOINT [ "vlc", "--no-metadata-network-access", "--no-qt-privacy-ask" ]
|