From 4c9d4f3baeeab0489a6d15a21a79a176cb75e6f4 Mon Sep 17 00:00:00 2001 From: Andrew Novoselac Date: Wed, 2 Oct 2024 13:41:13 -0400 Subject: [PATCH] Explicitly set the user to vscode in the Ruby image Dockerfile Since the metadata from devcontainer.json is not present in the image, other Dev Container implementations will not set this user (which is default for vscode and created by the debian base image). So lets explicitly set it so that those Dev Container implementations use the right user when using this image. --- images/ruby/.devcontainer/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/images/ruby/.devcontainer/Dockerfile b/images/ruby/.devcontainer/Dockerfile index f3d0f79..0d4a68d 100644 --- a/images/ruby/.devcontainer/Dockerfile +++ b/images/ruby/.devcontainer/Dockerfile @@ -2,4 +2,6 @@ FROM mcr.microsoft.com/devcontainers/base:1-bookworm RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ # Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131 - && apt-get purge -y imagemagick imagemagick-6-common \ No newline at end of file + && apt-get purge -y imagemagick imagemagick-6-common + +USER vscode