This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +63
-43
lines changed
azure-functions-node-8/.devcontainer
azure-functions-node-lts/.devcontainer
javascript-node-8/.devcontainer
javascript-node-lts-mongo/.devcontainer
javascript-node-lts/.devcontainer
typescript-node-8/.devcontainer
typescript-node-lts/.devcontainer Expand file tree Collapse file tree 7 files changed +63
-43
lines changed Original file line number Diff line number Diff line change 5
5
6
6
FROM mcr.microsoft.com/dotnet/core/sdk:2.1
7
7
8
- # Install git, process tools, bash
9
- RUN apt-get update && apt-get -y install git procps
8
+ # Verify git and needed tools are installed
9
+ RUN apt-get update && apt-get -y install git curl tar procps
10
10
11
11
# Install Node.js via NVM - See https://github.com/creationix/nvm
12
12
# Change the number "8" in the two lines below to pick a different version
@@ -18,6 +18,14 @@ RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh
18
18
# Install eslint
19
19
RUN /bin/bash -c "source $HOME/.nvm/nvm.sh && npm install -g eslint"
20
20
21
+ # Install latest yarn
22
+ RUN curl -sfSLO --compressed "https://yarnpkg.com/latest.tar.gz" \
23
+ && rm -rf /opt/yarn-* \
24
+ && tar -xzf latest.tar.gz -C /opt/ \
25
+ && ln -snf /opt/yarn-v*/bin/yarn /usr/local/bin/yarn \
26
+ && ln -snf /opt/yarn-v*/bin/yarnpkg /usr/local/bin/yarnpkg \
27
+ && rm latest.tar.gz
28
+
21
29
# Install Azure Functions and Azure CLI
22
30
RUN apt-get install -y apt-transport-https curl gnupg2 lsb-release \
23
31
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
Original file line number Diff line number Diff line change 5
5
6
6
FROM mcr.microsoft.com/dotnet/core/sdk:2.1
7
7
8
- # Install git, process tools, bash
9
- RUN apt-get update && apt-get -y install git procps
8
+ # Verify git and needed tools are installed
9
+ RUN apt-get update && apt-get -y install git curl tar procps
10
10
11
11
# Install Node.js via NVM - See https://github.com/creationix/nvm
12
12
# Change the "lts/*" in the two lines below to pick a different version
@@ -18,6 +18,14 @@ RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh
18
18
# Install eslint
19
19
RUN /bin/bash -c "source $HOME/.nvm/nvm.sh && npm install -g eslint"
20
20
21
+ # Install latest yarn
22
+ RUN curl -sfSLO --compressed "https://yarnpkg.com/latest.tar.gz" \
23
+ && rm -rf /opt/yarn-* \
24
+ && tar -xzf latest.tar.gz -C /opt/ \
25
+ && ln -snf /opt/yarn-v*/bin/yarn /usr/local/bin/yarn \
26
+ && ln -snf /opt/yarn-v*/bin/yarnpkg /usr/local/bin/yarnpkg \
27
+ && rm latest.tar.gz
28
+
21
29
# Install Azure Functions and Azure CLI
22
30
RUN apt-get install -y apt-transport-https curl gnupg2 lsb-release \
23
31
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
Original file line number Diff line number Diff line change @@ -10,15 +10,17 @@ ENV DEBIAN_FRONTEND=noninteractive
10
10
RUN apt-get update \
11
11
&& apt-get -y install --no-install-recommends apt-utils 2>&1
12
12
13
- # Verify git and process tools are installed
14
- RUN apt-get install -y git procps
13
+ # Verify git and needed tools are installed
14
+ RUN apt-get install -y git curl tar procps
15
15
16
- # Install yarn
17
- RUN apt-get install -y curl apt-transport-https lsb-release \
18
- && curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]' )/pubkey.gpg | apt-key add - 2>/dev/null \
19
- && echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
20
- && apt-get update \
21
- && apt-get -y install --no-install-recommends yarn
16
+ # Update Yarn to latest
17
+ # See https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#upgradingdowngrading-yarn
18
+ RUN curl -sfSLO --compressed "https://yarnpkg.com/latest.tar.gz" \
19
+ && rm -rf /opt/yarn-* \
20
+ && tar -xzf latest.tar.gz -C /opt/ \
21
+ && ln -snf /opt/yarn-v*/bin/yarn /usr/local/bin/yarn \
22
+ && ln -snf /opt/yarn-v*/bin/yarnpkg /usr/local/bin/yarnpkg \
23
+ && rm latest.tar.gz
22
24
23
25
# Install eslint
24
26
RUN npm install -g eslint
Original file line number Diff line number Diff line change @@ -13,12 +13,8 @@ RUN apt-get update \
13
13
# Verify git and process tools are installed
14
14
RUN apt-get install -y git procps
15
15
16
- # Install yarn
17
- RUN apt-get install -y curl apt-transport-https lsb-release \
18
- && curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]' )/pubkey.gpg | apt-key add - 2>/dev/null \
19
- && echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
20
- && apt-get update \
21
- && apt-get -y install --no-install-recommends yarn
16
+ # Update yarn
17
+ RUN npm install -g yarn
22
18
23
19
# Install eslint
24
20
RUN npm install -g eslint
Original file line number Diff line number Diff line change @@ -10,16 +10,18 @@ ENV DEBIAN_FRONTEND=noninteractive
10
10
RUN apt-get update \
11
11
&& apt-get -y install --no-install-recommends apt-utils 2>&1
12
12
13
- # Verify git and process tools are installed
14
- RUN apt-get install -y git procps
15
-
16
- # Install yarn
17
- RUN apt-get install -y curl apt-transport-https lsb-release \
18
- && curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]' )/pubkey.gpg | apt-key add - 2>/dev/null \
19
- && echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
20
- && apt-get update \
21
- && apt-get -y install --no-install-recommends yarn
13
+ # Verify git and needed tools are installed
14
+ RUN apt-get install -y git curl tar procps
22
15
16
+ # Update Yarn to latest
17
+ # See https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#upgradingdowngrading-yarn
18
+ RUN curl -sfSLO --compressed "https://yarnpkg.com/latest.tar.gz" \
19
+ && rm -rf /opt/yarn-* \
20
+ && tar -xzf latest.tar.gz -C /opt/ \
21
+ && ln -snf /opt/yarn-v*/bin/yarn /usr/local/bin/yarn \
22
+ && ln -snf /opt/yarn-v*/bin/yarnpkg /usr/local/bin/yarnpkg \
23
+ && rm latest.tar.gz
24
+
23
25
# Install eslint
24
26
RUN npm install -g eslint
25
27
Original file line number Diff line number Diff line change @@ -10,15 +10,17 @@ ENV DEBIAN_FRONTEND=noninteractive
10
10
RUN apt-get update \
11
11
&& apt-get -y install --no-install-recommends apt-utils 2>&1
12
12
13
- # Verify git and process tools are installed
14
- RUN apt-get install -y git procps
13
+ # Verify git and needed tools are installed
14
+ RUN apt-get install -y git curl tar procps
15
15
16
- # Install yarn
17
- RUN apt-get install -y curl apt-transport-https lsb-release \
18
- && curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]' )/pubkey.gpg | apt-key add - 2>/dev/null \
19
- && echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
20
- && apt-get update \
21
- && apt-get -y install --no-install-recommends yarn
16
+ # Update Yarn to latest
17
+ # See https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#upgradingdowngrading-yarn
18
+ RUN curl -sfSLO --compressed "https://yarnpkg.com/latest.tar.gz" \
19
+ && rm -rf /opt/yarn-* \
20
+ && tar -xzf latest.tar.gz -C /opt/ \
21
+ && ln -snf /opt/yarn-v*/bin/yarn /usr/local/bin/yarn \
22
+ && ln -snf /opt/yarn-v*/bin/yarnpkg /usr/local/bin/yarnpkg \
23
+ && rm latest.tar.gz
22
24
23
25
# Install tslint and typescript
24
26
RUN npm install -g tslint typescript
Original file line number Diff line number Diff line change @@ -10,15 +10,17 @@ ENV DEBIAN_FRONTEND=noninteractive
10
10
RUN apt-get update \
11
11
&& apt-get -y install --no-install-recommends apt-utils 2>&1
12
12
13
- # Verify git and process tools are installed
14
- RUN apt-get install -y git procps
13
+ # Verify git and needed tools are installed
14
+ RUN apt-get install -y git curl tar procps
15
15
16
- # Install yarn
17
- RUN apt-get install -y curl apt-transport-https lsb-release \
18
- && curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]' )/pubkey.gpg | apt-key add - 2>/dev/null \
19
- && echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
20
- && apt-get update \
21
- && apt-get -y install --no-install-recommends yarn
16
+ # Update Yarn to latest
17
+ # See https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#upgradingdowngrading-yarn
18
+ RUN curl -sfSLO --compressed "https://yarnpkg.com/latest.tar.gz" \
19
+ && rm -rf /opt/yarn-* \
20
+ && tar -xzf latest.tar.gz -C /opt/ \
21
+ && ln -snf /opt/yarn-v*/bin/yarn /usr/local/bin/yarn \
22
+ && ln -snf /opt/yarn-v*/bin/yarnpkg /usr/local/bin/yarnpkg \
23
+ && rm latest.tar.gz
22
24
23
25
# Install tslint and typescript
24
26
RUN npm install -g tslint typescript
You can’t perform that action at this time.
0 commit comments