Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 2b3ba93

Browse files
committed
Fix apt deps
1 parent 4e359d4 commit 2b3ba93

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

containers/dotnetcore-2.1/.devcontainer/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN apt-get update \
2929
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
3030
#
3131
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
32-
&& apt-get -y install git iproute2 procps lsb-release \
32+
&& apt-get -y install git iproute2 procps apt-transport-https gnupg2 curl lsb-release \
3333
#
3434
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
3535
&& groupadd --gid $USER_GID $USERNAME \
@@ -63,8 +63,7 @@ RUN apt-get update \
6363
#
6464
# [Optional] Install the Azure CLI
6565
&& if [ "$INSTALL_AZURE_CLI" = "true" ]; then \
66-
apt-get install -y apt-transport-https curl gnupg2 lsb-release \
67-
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
66+
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
6867
&& curl -sL https://packages.microsoft.com/keys/microsoft.asc | apt-key add - 2>/dev/null \
6968
&& apt-get update \
7069
&& apt-get install -y azure-cli; \

containers/dotnetcore-2.2/.devcontainer/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN apt-get update \
3030
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
3131
#
3232
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
33-
&& apt-get -y install git iproute2 procps lsb-release \
33+
&& apt-get -y install git iproute2 procps apt-transport-https gnupg2 curl lsb-release \
3434
#
3535
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
3636
&& groupadd --gid $USER_GID $USERNAME \
@@ -64,8 +64,7 @@ RUN apt-get update \
6464
#
6565
# [Optional] Install the Azure CLI
6666
&& if [ "$INSTALL_AZURE_CLI" = "true" ]; then \
67-
apt-get install -y apt-transport-https curl gnupg2 lsb-release \
68-
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
67+
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
6968
&& curl -sL https://packages.microsoft.com/keys/microsoft.asc | apt-key add - 2>/dev/null \
7069
&& apt-get update \
7170
&& apt-get install -y azure-cli; \

containers/dotnetcore-3.0/.devcontainer/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN apt-get update \
3030
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
3131
#
3232
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
33-
&& apt-get -y install git iproute2 procps lsb-release \
33+
&& apt-get -y install git iproute2 procps apt-transport-https gnupg2 curl lsb-release \
3434
#
3535
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
3636
&& groupadd --gid $USER_GID $USERNAME \
@@ -64,8 +64,7 @@ RUN apt-get update \
6464
#
6565
# [Optional] Install the Azure CLI
6666
&& if [ "$INSTALL_AZURE_CLI" = "true" ]; then \
67-
apt-get install -y apt-transport-https curl gnupg2 lsb-release \
68-
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
67+
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
6968
&& curl -sL https://packages.microsoft.com/keys/microsoft.asc | apt-key add - 2>/dev/null \
7069
&& apt-get update \
7170
&& apt-get install -y azure-cli; \

0 commit comments

Comments
 (0)