Skip to content

Commit

Permalink
Explicitly set the user to vscode in the Ruby image Dockerfile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andrewn617 committed Oct 2, 2024
1 parent 1a23e3d commit 4c9d4f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion images/ruby/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
&& apt-get purge -y imagemagick imagemagick-6-common

USER vscode

0 comments on commit 4c9d4f3

Please sign in to comment.