mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
3ef9d78fe9
Previously this Dockerfile was using buster, but would throw the error: ``` Could not find the Qt platform plugin "xcb" in "" ``` Switching to stretch solves the problem. Similar to issue: https://github.com/jessfraz/dockerfiles/issues/401
31 lines
619 B
Docker
31 lines
619 B
Docker
# 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:stretch-slim
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
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 \
|
|
&& usermod -a -G audio,video vlc
|
|
|
|
WORKDIR $HOME
|
|
USER vlc
|
|
|
|
ENTRYPOINT [ "vlc" ]
|