diff --git a/Dockerfile b/Dockerfile index 958f9d7..6569761 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ +# syntax=docker/dockerfile:1.4 FROM rubensa/ubuntu-tini-dev LABEL author="Ruben Suarez " @@ -27,47 +28,65 @@ ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update # Install Google Noto font family -RUN echo "# Installing Google Noto font family..." \ - && apt-get -y install fonts-noto 2>&1 +RUN <&1 +EOT # Install software and libraries needed to share X11 between host and container -RUN echo "# Installing kmod, libglib2.0-bin, libgl1, libglx-mesa0, libgl1-mesa-dri, pulseaudio-utils, cups-client, x11-utils, mesa-utils, mesa-utils-extra and va-driver-all..." \ - && apt-get -y install --no-install-recommends kmod libglib2.0-bin libgl1 libglx-mesa0 libgl1-mesa-dri pulseaudio-utils cups-client x11-utils mesa-utils mesa-utils-extra va-driver-all 2>&1 +RUN <&1 +EOT # Configure user (add to audio and video groups) -RUN echo "# Configuring '${USER_NAME}' for X11 functionallity..." \ - # - # Assign audio group to non-root user - && usermod -a -G audio ${USER_NAME} \ - # - # Assign video group to non-root user - && usermod -a -G video ${USER_NAME} +RUN <> /home/${USER_NAME}/.bashrc +RUN <> /home/${USER_NAME}/.bashrc +EOT # Clean up apt -RUN apt-get autoremove -y \ - && apt-get clean -y \ - && rm -rf /var/lib/apt/lists/* +RUN <