From 3b266534773f39d49ef563bfea87dc3c75406513 Mon Sep 17 00:00:00 2001 From: Yashitha Nadeeshan <64678612+y-developer@users.noreply.github.com> Date: Wed, 3 Dec 2025 02:01:09 +0530 Subject: [PATCH] Switch user to root for package installation Changed user from 'vscode' to 'root' for package installation and reverted back to 'vscode' afterwards. --- dockerfiles/ubuntu/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dockerfiles/ubuntu/Dockerfile b/dockerfiles/ubuntu/Dockerfile index 63d9c69..801b98a 100644 --- a/dockerfiles/ubuntu/Dockerfile +++ b/dockerfiles/ubuntu/Dockerfile @@ -1,7 +1,7 @@ ARG UBUNTU_VERSION FROM mcr.microsoft.com/devcontainers/base:ubuntu-${UBUNTU_VERSION} -USER vscode +USER root RUN apt-get update && apt-get install -y \ build-essential \ @@ -14,3 +14,5 @@ RUN apt-get update && apt-get install -y \ lsb-release \ apt-transport-https \ telnet + +USER vscode