Skip to content

Commit

Permalink
make root the default user for universal container
Browse files Browse the repository at this point in the history
  • Loading branch information
mojojoji authored Mar 6, 2024
1 parent 81f599e commit 9f87bcc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
uses: devcontainers/[email protected]
with:
subFolder: ${{ matrix.image }}
imageName: ghcr.io/codesandbox/devcontainers/${{ matrix.image }}
imageName: ghcr.io/codesandbox/devcontainers/${{ matrix.image }}:0.1
cacheFrom: ghcr.io/codesandbox/devcontainers/${{ matrix.image }}
push: always
3 changes: 3 additions & 0 deletions universal/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM mcr.microsoft.com/devcontainers/universal:2-focal

USER root
5 changes: 4 additions & 1 deletion universal/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "CodeSandbox Universal",
"image": "mcr.microsoft.com/devcontainers/universal:2-focal",
"build": {
"context": ".",
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/codesandbox/devcontainer-features/codesandbox:0.1.4": {}
},
Expand Down

0 comments on commit 9f87bcc

Please sign in to comment.