Skip to content

Commit

Permalink
remove non root user
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jun 2, 2024
1 parent 3da41c9 commit 7a3cbe9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/containers/dind/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ RUN apt update && apt install -y --no-install-recommends \
containerlab

# Switch to user
USER user
ENV PATH=$PATH:/home/${USERNAME}/.local/bin
# USER user
# ENV PATH=$PATH:/home/${USERNAME}/.local/bin
10 changes: 10 additions & 0 deletions .github/containers/dind/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
// }
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"installOhMyZsh": true,
"configureZshAsDefaultShell": true,
// "username": "${localEnv:USERNAME}",
// "userUid": "${localEnv:UID}",
// "userGid": "${localEnv:GID}",
// do not update packages to reduce build time
"upgradePackages": "false"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "latest",
"dockerDashComposeVersion": "none"
Expand Down

0 comments on commit 7a3cbe9

Please sign in to comment.