-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (18 loc) · 1019 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM srsp/ansible:2.17.7 as build
RUN apt-get update && \
apt-get install -y apt-transport-https ca-certificates wget gnupg lsb-release && \
mkdir -p /etc/apt/keyrings && \
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /etc/apt/keyrings/microsoft.gpg && \
chmod go+r /etc/apt/keyrings/microsoft.gpg && \
AZ_DIST=$(lsb_release -cs) && \
echo "Types: deb\nURIs: https://packages.microsoft.com/repos/azure-cli/\nSuites: ${AZ_DIST}\nComponents: main\nArchitectures: $(dpkg --print-architecture)\nSigned-by: /etc/apt/keyrings/microsoft.gpg" | tee /etc/apt/sources.list.d/azure-cli.sources && \
apt-get update && \
apt-get install -y azure-cli && \
apt-get clean && \
find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf && \
find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
FROM srsp/ansible:2.17.7
COPY --from=build /usr/bin/ /usr/bin/
COPY --from=build /opt/az/ /opt/az/
ENV SSL_CERT_DIR=/etc/ssl/certs
CMD ["/bin/sh"]