FROM dorowu/ubuntu-desktop-lxde-vnc:focal LABEL maintainer="Tiryoh" ENV DEBIAN_FRONTEND noninteractive RUN echo "Set disable_coredump false" >> /etc/sudo.conf RUN apt-get update -q && \ apt-get upgrade -yq && \ apt-get install -yq wget curl git build-essential vim sudo lsb-release locales bash-completion tzdata gosu && \ rm -rf /var/lib/apt/lists/* RUN useradd --create-home --home-dir /home/ubuntu --shell /bin/bash --user-group --groups adm,sudo ubuntu && \ echo ubuntu:ubuntu | chpasswd && \ echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers COPY ./ros-noetic-desktop.sh /ros-noetic-desktop.sh RUN mkdir -p /tmp/ros_setup_scripts_ubuntu && mv /ros-noetic-desktop.sh /tmp/ros_setup_scripts_ubuntu/ && \ gosu ubuntu /tmp/ros_setup_scripts_ubuntu/ros-noetic-desktop.sh && \ rm -rf /var/lib/apt/lists/* ENV USER ubuntu