Skip to content

Commit 8d17912

Browse files
authored
Merge pull request #272 from r-devel/improve-chown-calls
Improve chown calls
2 parents 4024193 + 5c6a841 commit 8d17912

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "R-Dev-Env",
33
"image": "ghcr.io/r-devel/r-dev-env:devel",
4+
"remoteUser": "vscode",
45
"hostRequirements": {
56
"cpus": 4
67
},
@@ -47,5 +48,5 @@
4748
]
4849
}
4950
},
50-
"postCreateCommand": "find . -wholename '*.git*' -type d -prune -o -type f -exec chown vscode:vscode {} \\; && sh /workspaces/r-dev-env/scripts/localscript.sh"
51+
"postCreateCommand": "sh /workspaces/r-dev-env/scripts/localscript.sh"
5152
}

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ RUN Rscript -e "runiverse <- sprintf('r-universe.dev/bin/linux/%s-%s/%s/', \
3030
# Define env var used in GitHub Actions that build and deploy container
3131
ARG CONTAINER_VERSION
3232
ENV CONTAINER_VERSION=${CONTAINER_VERSION}
33+
34+
USER vscode

0 commit comments

Comments
 (0)