From 5c6a8414853023ebddcca29e4276bde45999e05d Mon Sep 17 00:00:00 2001 From: avinab-neogy Date: Fri, 15 Aug 2025 14:25:35 +0530 Subject: [PATCH] changes to devcontainer.json and dockerfile --- .devcontainer/devcontainer.json | 3 ++- Dockerfile | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 62e90add9..dfea5befe 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,7 @@ { "name": "R-Dev-Env", "image": "ghcr.io/r-devel/r-dev-env:devel", + "remoteUser": "vscode", "hostRequirements": { "cpus": 4 }, @@ -47,5 +48,5 @@ ] } }, - "postCreateCommand": "find . -wholename '*.git*' -type d -prune -o -type f -exec chown vscode:vscode {} \\; && sh /workspaces/r-dev-env/scripts/localscript.sh" + "postCreateCommand": "sh /workspaces/r-dev-env/scripts/localscript.sh" } diff --git a/Dockerfile b/Dockerfile index 458876b1c..5b88fee2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,3 +30,5 @@ RUN Rscript -e "runiverse <- sprintf('r-universe.dev/bin/linux/%s-%s/%s/', \ # Define env var used in GitHub Actions that build and deploy container ARG CONTAINER_VERSION ENV CONTAINER_VERSION=${CONTAINER_VERSION} + +USER vscode