Dockerfile 2.53 KB
Newer Older
1
FROM ubuntu:bionic-20190307
2

3
MAINTAINER VideoLAN roots <roots@videolan.org>
4

5 6
ENV IMAGE_DATE=201904161025
ENV LANG=en_US.UTF-8
7 8
ENV PATH=$PATH:/usr/sbin

9 10 11 12 13 14 15 16 17 18 19
# If someone wants to use VideoLAN docker images on a local machine and does
# not want to be disturbed by the videolan user, we should not take an uid/gid
# in the user range of main distributions, which means:
# - Debian based: <1000
# - RPM based: <500 (CentOS, RedHat, etc.)
ARG VIDEOLAN_UID=499

RUN set -x && \
    addgroup --quiet --gid ${VIDEOLAN_UID} videolan && \
    adduser --quiet --uid ${VIDEOLAN_UID} --ingroup videolan videolan && \
    echo "videolan:videolan" | chpasswd && \
20
    apt-get update && apt-get install -y --no-install-suggests --no-install-recommends \
21
      gnupg1 && \
22
    echo "deb http://archive.neon.kde.org/user bionic main" >> /etc/apt/sources.list.d/neon.list && \
23 24
    apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E6D4736255751E5D && \
    apt-get update && \
25 26
    apt-get install -y --no-install-suggests --no-install-recommends \
      ant autoconf automake autopoint bison cmake flex g++ gettext \
27 28 29 30 31 32 33 34 35 36
      git git-core libasound2-dev libavahi-client-dev libcdio-dev libdbus-1-dev \
      libdirectfb-dev libegl1-mesa-dev libfreerdp-dev libfreetype6-dev libfribidi-dev \
      libgles2-mesa-dev libgnutls28-dev libgtk2.0-dev libidn11-dev libjack-dev \
      liblircclient-dev libltdl-dev liblua5.2-dev libmtp-dev libncursesw5-dev \
      libpng-dev libpulse-dev libqt5svg5-dev libqt5x11extras5-dev librsvg2-dev \
      libsecret-1-dev libtool libtool-bin libudev-dev libupnp-dev libv4l-dev \
      libva-dev libvdpau-dev libx11-dev libxcb-composite0-dev libxcb-keysyms1-dev \
      libxcb-randr0-dev libxcb-shm0-dev libxcb-xfixes0-dev libxcb-xv0-dev libxcb1-dev \
      libxext-dev libxi-dev libxinerama-dev libxml2-dev libxpm-dev libzvbi-dev \
      locales lua5.2 make pkg-config qtbase5-dev qtbase5-private-dev ragel snapcraft \
37 38
      vim xz-utils yasm zlib1g-dev libxkbcommon-x11-dev meson  \
      curl build-essential python3-pip python3-setuptools python3-wheel \
39 40
      nasm clang libvulkan-dev qtdeclarative5-dev qtquickcontrols2-5-dev \
      qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtquick-templates2 \
41
      qml-module-qtgraphicaleffects gnupg1 ca-certificates lftp openjdk-8-jdk \
42 43 44 45 46 47 48
      && \
    pip3 install meson ninja && \
    apt-get clean -y && rm -rf /var/lib/apt/lists/* && \
    locale-gen en_US.UTF-8 && \
    /usr/sbin/update-locale LANG=en_US.UTF-8 && \
    echo "export PATH=\$PATH:/usr/sbin" >> /etc/profile.d/vlc_env.sh

49 50

USER videolan