# debian.sh --arch 'amd64' out/ 'bookworm' '@1738540800' |
ENV DEBIAN_FRONTEND=noninteractive |
RUN /bin/sh -c apt update && apt install -y curl wget gnupg software-properties-common apt-transport-https ca-certificates lsb-release make vim pipx # buildkit |
RUN /bin/sh -c wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null # buildkit |
RUN /bin/sh -c echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list # buildkit |
RUN /bin/sh -c mkdir -p /etc/apt/keyrings && curl -sLS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/keyrings/microsoft.gpg > /dev/null && chmod go+r /etc/apt/keyrings/microsoft.gpg # buildkit |
RUN /bin/sh -c AZ_DIST=$(lsb_release -cs) && echo "Types: deb" > /etc/apt/sources.list.d/azure-cli.sources && echo "URIs: https://packages.microsoft.com/repos/azure-cli/" >> /etc/apt/sources.list.d/azure-cli.sources && echo "Suites: ${AZ_DIST}" >> /etc/apt/sources.list.d/azure-cli.sources && echo "Components: main" >> /etc/apt/sources.list.d/azure-cli.sources && echo "Architectures: $(dpkg --print-architecture)" >> /etc/apt/sources.list.d/azure-cli.sources && echo "Signed-by: /etc/apt/keyrings/microsoft.gpg" >> /etc/apt/sources.list.d/azure-cli.sources # buildkit |
RUN /bin/sh -c apt update && apt install -y terraform azure-cli && pipx ensurepath && pipx install ansible --include-deps && apt-get clean # buildkit |
RUN /bin/sh -c echo 'export PATH="$PATH:/root/.local/bin"' >> /root/.bashrc # buildkit |
WORKDIR /workspace |