docker-github-runner-linux icon indicating copy to clipboard operation
docker-github-runner-linux copied to clipboard

azure-cli install failing

Open mucifous opened this issue 2 years ago • 0 comments

hey there, the azure-cli install was failing ao I added the "official" method to your dockerfile...

# add azure cli repos
RUN apt-get update -y && apt-get upgrade -y && useradd -m docker
RUN apt-get install -y \
    ca-certificates curl apt-transport-https lsb-release gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -sLS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/keyrings/microsoft.gpg > /dev/null
RUN chmod go+r /etc/apt/keyrings/microsoft.gpg
RUN echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ jammy main" | tee /etc/apt/sources.list.d/azure-cli.list
RUN apt-get update -y

# install the packages and dependencies along with jq so we can parse JSON (add additional packages as necessary)
RUN apt-get install -y --no-install-recommends \
    curl nodejs wget unzip vim azure-cli git jq build-essential libssl-dev libffi-dev python3 python3-venv python3-dev python3-pip

mucifous avatar Oct 31 '23 12:10 mucifous