From 543bc8f0d5b8fb28643a731a5370245f2444f3c2 Mon Sep 17 00:00:00 2001 From: SamB Date: Sun, 12 Dec 2021 23:14:11 +0000 Subject: [PATCH] vscode/Dockerfile: Add sudo, leave /tmp alone The official gitpod Docker images drop root now, so add sudo throughout. Also, don't try to clear out /tmp: we're using tmpfs now, and you never know when something is actually using /tmp while the system is still running, so it's both safer and faster to just leave it. --- vscode/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vscode/Dockerfile b/vscode/Dockerfile index 85382d6..f995448 100644 --- a/vscode/Dockerfile +++ b/vscode/Dockerfile @@ -1,6 +1,6 @@ FROM gitpod/workspace-full-vnc:latest # install dependencies -RUN apt-get update \ - && apt-get install -y libx11-dev libxkbfile-dev libsecret-1-dev libgconf2-dev libnss3 libgtk-3-dev libasound2-dev twm \ - && apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/* +RUN sudo apt-get update \ + && sudo apt-get install -y libx11-dev libxkbfile-dev libsecret-1-dev libgconf2-dev libnss3 libgtk-3-dev libasound2-dev twm \ + && sudo apt-get clean && sudo rm -rf /var/cache/apt/* /var/lib/apt/lists/* \ No newline at end of file