diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index f60cd45..05e5acb 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -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 \ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f146232..3bee848 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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": {