47 lines
1.6 KiB
Docker
47 lines
1.6 KiB
Docker
FROM debian:12.9-slim
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt update && \
|
|
apt install -y \
|
|
curl \
|
|
wget \
|
|
gnupg \
|
|
software-properties-common \
|
|
apt-transport-https \
|
|
ca-certificates \
|
|
lsb-release \
|
|
make \
|
|
vim \
|
|
pipx
|
|
|
|
RUN wget -O- https://apt.releases.hashicorp.com/gpg | \
|
|
gpg --dearmor | \
|
|
tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null
|
|
|
|
RUN 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
|
|
|
|
RUN 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
|
|
|
|
RUN 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
|
|
|
|
RUN apt update && \
|
|
apt install -y terraform azure-cli && \
|
|
pipx ensurepath && \
|
|
pipx install ansible --include-deps && \
|
|
apt-get clean
|
|
|
|
RUN echo 'export PATH="$PATH:/root/.local/bin"' >> /root/.bashrc
|
|
|
|
WORKDIR /workspace
|