This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +24
-18
lines changed
azure-functions-node-8/.devcontainer
azure-functions-node-lts/.devcontainer Expand file tree Collapse file tree 4 files changed +24
-18
lines changed Original file line number Diff line number Diff line change 5
5
6
6
FROM microsoft/dotnet:2.1-sdk-bionic
7
7
8
- # Install git, process tools
8
+ # Install git, process tools, bash
9
9
RUN apt-get update && apt-get -y install git procps
10
10
11
- # Install Node.js
12
- # Update "setup" to "setup_<verison>.x" if you want a specific verison of Node.js
13
- # See https://github.com/nodesource/distributions/tree/master/deb for a list
14
- RUN apt-get install -y curl \
15
- && curl -sSL https://deb.nodesource.com/setup_8.x | bash - \
16
- && apt-get update \
17
- && apt-get install -y nodejs
11
+ # Install Node.js via NVM - See https://github.com/creationix/nvm
12
+ # Change the number "8" in the two lines below to pick a different version
13
+ RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash \
14
+ && /bin/bash -c "source $HOME/.nvm/nvm.sh \
15
+ && nvm install 8 \
16
+ && nvm alias default 8"
17
+
18
+ # Install eslint
19
+ RUN /bin/bash -c "source $HOME/.nvm/nvm.sh && npm install -g eslint"
18
20
19
21
# Install Azure Functions
20
22
RUN apt-get install -y apt-transport-https \
Original file line number Diff line number Diff line change 3
3
"dockerFile" : " Dockerfile" ,
4
4
"appPort" : 7071 ,
5
5
"extensions" : [
6
- " ms-azuretools.vscode-azurefunctions"
6
+ " ms-azuretools.vscode-azurefunctions" ,
7
+ " dbaeumer.vscode-eslint"
7
8
]
8
9
}
Original file line number Diff line number Diff line change 5
5
6
6
FROM microsoft/dotnet:2.1-sdk-bionic
7
7
8
- # Install git, process tools
8
+ # Install git, process tools, bash
9
9
RUN apt-get update && apt-get -y install git procps
10
10
11
- # Install Node.js
12
- # Update "setup" to "setup_<verison>.x" if you want a specific verison of Node.js
13
- # See https://github.com/nodesource/distributions/tree/master/deb for a list
14
- RUN apt-get install -y curl \
15
- && curl -sSL https://deb.nodesource.com/setup | bash - \
16
- && apt-get update \
17
- && apt-get install -y nodejs
11
+ # Install Node.js via NVM - See https://github.com/creationix/nvm
12
+ # Change the "lts/*" in the two lines below to pick a different version
13
+ RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash \
14
+ && /bin/bash -c "source $HOME/.nvm/nvm.sh \
15
+ && nvm install lts/* \
16
+ && nvm alias default lts/*"
17
+
18
+ # Install eslint
19
+ RUN /bin/bash -c "source $HOME/.nvm/nvm.sh && npm install -g eslint"
18
20
19
21
# Install Azure Functions
20
22
RUN apt-get install -y apt-transport-https \
Original file line number Diff line number Diff line change 3
3
"dockerFile" : " Dockerfile" ,
4
4
"appPort" : 7071 ,
5
5
"extensions" : [
6
- " ms-azuretools.vscode-azurefunctions"
6
+ " ms-azuretools.vscode-azurefunctions" ,
7
+ " dbaeumer.vscode-eslint"
7
8
]
8
9
}
You can’t perform that action at this time.
0 commit comments