-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.azure-pipelines
35 lines (27 loc) · 1.13 KB
/
Dockerfile.azure-pipelines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ubuntu:22.04
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends \
apt-transport-https \
apt-utils \
ca-certificates \
curl \
git \
iputils-ping \
jq \
lsb-release \
software-properties-common \
wget
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt install dirmngr lsb-release ca-certificates software-properties-common apt-transport-https curl -y && \
curl -fSsL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /usr/share/keyrings/powershell.gpg > /dev/null && \
echo "deb [arch=amd64,armhf,arm64 signed-by=/usr/share/keyrings/powershell.gpg] https://packages.microsoft.com/ubuntu/22.04/prod/ jammy main" | tee /etc/apt/sources.list.d/powershell.list && \
apt update && \
apt install powershell
RUN apt-get install -y powershell
# Can be 'linux-x64', 'linux-arm64', 'linux-arm', 'rhel.6-x64'.
ENV TARGETARCH=linux-x64
WORKDIR /azp
COPY azure-pipelines-agent/start.sh .
RUN chmod +x start.sh
ENTRYPOINT [ "./start.sh" ]