File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change
1
+ FROM node:18-bullseye
2
+
3
+ RUN useradd -m -s /bin/bash vscode
4
+ RUN mkdir -p /workspaces && chown -R vscode:vscode /workspaces
5
+ WORKDIR /workspaces
Original file line number Diff line number Diff line change 13
13
}
14
14
},
15
15
"postCreateCommand" : " " ,
16
- "features" : { "ghcr.io/devcontainers/features/git:1" : {} }
16
+ "features" : { "ghcr.io/devcontainers/features/git:1" : {} },
17
+ "remoteUser" : " vscode"
17
18
}
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ version: "3.8"
2
2
3
3
services :
4
4
app :
5
- image : node:19-bullseye
5
+ build :
6
+ context : ..
7
+ dockerfile : .devcontainer/Dockerfile
6
8
# restart: always
7
9
links :
8
10
- mongodb
@@ -30,8 +32,8 @@ services:
30
32
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
31
33
# (Adding the "ports" property to this file will not forward from a Codespace.)
32
34
33
- # Uncomment the next line to use a non-root user for all processes - See https://aka.ms/vscode-remote/containers/non-root for details.
34
- # user: vscode
35
+ # Use a non-root user for all processes - See https://aka.ms/vscode-remote/containers/non-root for details.
36
+ user : vscode
35
37
36
38
# Overrides default command so things don't shut down after the process ends.
37
39
command : /bin/sh -c "while sleep 1000; do :; done"
You can’t perform that action at this time.
0 commit comments