jongio / azureclicredentialcontainer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure CLI not installed

apetrut opened this issue · comments

Hi,

I am getting Azure CLI not installed error when running docker-compose even if I put the RUN commands in docker files.

The docker-compose loads 3 separate docker files which all contain this last step:

FROM base AS final
RUN apt-get clean && apt-get update
RUN apt install curl -y
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
WORKDIR /app
COPY --from=publish /app/publish .
ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
ENTRYPOINT ["dotnet", "IdentityServer.dll"]

image

This solution no longer works, please see this issue Azure/azure-sdk-for-net#19167