diff --git a/Dockerfile b/Dockerfile index 4a3722a..eca97ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,23 +27,19 @@ chown -Rf $USERNAME.$USERNAME /home/$USERNAME RUN apt-get update && apt-get install -y --no-install-recommends \ - sudo \ - less \ - tmux \ + sudo less tmux \ bash-completion \ command-not-found \ software-properties-common \ - xsel \ - xdg-user-dirs \ - python \ - python-pip \ + xsel xdg-user-dirs \ + python python-pip \ python-dev \ python-protobuf \ python-pexpect \ pcl-tools \ openssh-server \ locales && \ - apt-get clean && rm -rf /var/lib/apt/lists/* && \ + apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* && \ locale-gen en_US.UTF-8 RUN pip install --upgrade pip setuptools @@ -60,7 +56,7 @@ \"api_version\" : \"${VULKAN_API_VERSION}\"\ }\ }" > /etc/vulkan/icd.d/nvidia_icd.json && \ - apt-get clean && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* # Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Failed to execute child process dbus-launch (No such file or directory) # fix by setting LANG https://askubuntu.com/questions/608330/problem-with-gnome-terminal-on-gnome-3-12-2 @@ -90,7 +86,7 @@ pkg-config \ libelf-dev \ gnupg patch xinit && \ - apt-get clean && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* # libc6:i386 \ # (1-2) Install xorg server and xinit BEFORE INSTALLING NVIDIA DRIVER. @@ -110,7 +106,7 @@ apt-key add /var/cuda-repo-ubuntu1804-11-6-local/7fa2af80.pub RUN apt-get update && apt-get install -y --no-install-recommends \ cuda-drivers && \ - apt-get clean && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* # (2) Configurate Xorg @@ -127,7 +123,7 @@ mesa-utils lxterminal gnome-tweak-tool x11-apps \ automake autoconf libssl-dev xorg-dev libvncserver-dev \ xdg-user-dirs xdg-utils && \ - apt-get clean && rm -rf /var/lib/apt/lists/* && \ + apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* && \ git clone -b 0.9.16 https://github.com/LibVNC/x11vnc.git && \ cd x11vnc && \ ./autogen.sh && \ @@ -138,7 +134,7 @@ # vulkan-utils includes vulkan-smoketest, benchmark software of vulkan API RUN apt-get update && apt-get install -y --no-install-recommends \ vulkan-utils firefox openbox menu alsa pulseaudio libgtk2.0-0 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* # novnc # download websockify as well @@ -153,7 +149,7 @@ # related? https://github.com/Microsoft/WSL/issues/2016 RUN apt-get update && apt-get install -y --no-install-recommends \ dbus-x11 libdbus-c++-1-0v5 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* RUN echo "alias m='cd /home/$USERNAME ; su $USERNAME'" >> /home/$USERNAME/.bashrc @@ -166,7 +162,7 @@ python-rosinstall \ python-rosinstall-generator \ python-wstool && \ - apt-get clean && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* # addtional ROS package RUN apt-get update && apt-get install -y --no-install-recommends \ @@ -176,7 +172,7 @@ python3-numpy \ libomp-dev \ libomp5 && \ - apt-get clean && rm -rf /var/lib/apt/lists/* + apt-get autoclean -y && apt-get autocremove -y && rm -rf /var/lib/apt/lists/* RUN pip install --upgrade setuptools wheel && \ pip install \