install azd in codespace

This commit is contained in:
zedy
2022-12-12 11:14:42 +08:00
parent a949d4b225
commit 7f40d2d115
2 changed files with 9 additions and 1 deletions

View File

@@ -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 \