Fix devcontainer websocket/port issues, update/add npm scripts
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
FROM node:18
|
||||
|
||||
# Install some apt packages
|
||||
RUN apt-get update && apt-get install -y sudo zsh git vim tmux
|
||||
RUN apt-get update && apt-get install -y sudo zsh git vim tmux lsof
|
||||
|
||||
# Variable for default user `node` to be used in the following steps
|
||||
ARG USERNAME=node
|
||||
|
||||
@@ -15,7 +15,12 @@
|
||||
]
|
||||
},
|
||||
"forwardPorts": [3000],
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"label": "React Dev Server",
|
||||
"onAutoForward": "notify"
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "npm install",
|
||||
"remoteUser": "node"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user