install azd in codespace
This commit is contained in:
@@ -20,6 +20,7 @@ ENV NVM_DIR=/usr/local/share/nvm
|
||||
|
||||
# [Optional] Install the Azure CLI
|
||||
ARG INSTALL_AZURE_CLI="false"
|
||||
ARG INSTALL_AZURE_DEVELOPER_CLI="true"
|
||||
|
||||
# Configure apt and install packages
|
||||
RUN apt-get update \
|
||||
@@ -68,6 +69,12 @@ RUN apt-get update \
|
||||
&& apt-get install -y azure-cli; \
|
||||
fi \
|
||||
#
|
||||
# [Optional] Install the Azure Developer CLI
|
||||
&& if [ "$INSTALL_AZURE_DEVELOPER_CLI" = "true" ]; then \
|
||||
apt-get update \
|
||||
&& curl -fsSL https://aka.ms/install-azd.sh | bash \
|
||||
fi \
|
||||
#
|
||||
# Install EF Core dotnet tool
|
||||
&& dotnet tool install dotnet-ef --tool-path /home/$USERNAME/.dotnet/tools \
|
||||
&& chown -R $USERNAME /home/$USERNAME/.dotnet \
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
"USERNAME": "vscode",
|
||||
"INSTALL_NODE": "false",
|
||||
"NODE_VERSION": "lts/*",
|
||||
"INSTALL_AZURE_CLI": "false"
|
||||
"INSTALL_AZURE_CLI": "false",
|
||||
"INSTALL_AZURE_DEVELOPER_CLI": "true"
|
||||
}
|
||||
},
|
||||
"features": {
|
||||
|
||||
Reference in New Issue
Block a user