File tree 3 files changed +5
-61
lines changed
3 files changed +5
-61
lines changed Original file line number Diff line number Diff line change 3
3
# [Choice] Node.js version
4
4
ARG VARIANT="dev-22-bullseye"
5
5
FROM mcr.microsoft.com/devcontainers/javascript-node:${VARIANT}
6
-
7
- # [Optional] Uncomment this section to install additional OS packages.
8
- # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9
- # && apt-get -y install --no-install-recommends <your-package-list-here>
10
-
11
- # [Optional] Uncomment if you want to install an additional version of node using nvm
12
- # ARG EXTRA_NODE_VERSION=10
13
- # RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
14
-
15
- # [Optional] Uncomment if you want to install more global node modules
16
- # RUN su node -c "npm install -g <your-package-list-here>"
17
-
18
- # Install the GitHub CLI see:
19
- # https://github.com/microsoft/vscode-dev-containers/blob/3d59f9fe37edb68f78874620f33dac5a62ef2b93/script-library/docs/github.md
20
- COPY library-scripts/github-debian.sh /tmp/library-scripts/
21
- RUN apt-get update && bash /tmp/library-scripts/github-debian.sh
Original file line number Diff line number Diff line change 11
11
12
12
// Install features. Type 'feature' in the VS Code command palette for a full list.
13
13
"features" : {
14
- "sshd" : " latest"
14
+ "sshd" : " latest" ,
15
+ "ghcr.io/devcontainers/features/github-cli:1" : {}
15
16
},
16
17
17
18
"customizations" : {
53
54
54
55
"portsAttributes" : {
55
56
"4000" : {
56
- "label" : " Preview "
57
+ "label" : " Review "
57
58
}
58
59
},
59
60
60
61
// Lifecycle commands
61
62
"onCreateCommand" : " npm ci" ,
62
63
"postStartCommand" : " nohup bash -c 'npm start &'" ,
64
+ // Set the port to be public
65
+ "postAttachCommand" : " gh cs ports visibility 4000:public -c \" $CODESPACE_NAME\" " ,
63
66
64
67
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
65
68
"remoteUser" : " node" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments