1- FROM mcr.microsoft.com/azurelinux/base/core:3 .0 as venv
1+ FROM mcr.microsoft.com/azurelinux-beta /base/core:4 .0 AS venv
22
3- RUN tdnf install --refresh -y \
4- build-essential \
5- ca-certificates-microsoft \
6- gcc \
3+ RUN dnf install --refresh -y \
4+ ca-certificates \
75 iputils \
86 python3 \
97 python3-devel \
@@ -15,16 +13,14 @@ RUN python3 -m venv /venv && \
1513 pip install ./helix_scripts-*-py3-none-any.whl && \
1614 rm ./helix_scripts-*-py3-none-any.whl
1715
18- FROM mcr.microsoft.com/azurelinux/base/core:3 .0
16+ FROM mcr.microsoft.com/azurelinux-beta /base/core:4 .0
1917
2018# Install .NET and test dependencies
21- RUN tdnf update -y && \
22- tdnf install --setopt tsflags=nodocs --refresh -y \
23- ca-certificates-microsoft \
19+ RUN dnf install --setopt tsflags=nodocs --refresh -y \
20+ ca-certificates \
2421 icu \
2522 iputils \
26- libgcc-atomic \
27- libmsquic \
23+ libatomic \
2824 llvm \
2925 python3 \
3026 python3-pip \
@@ -33,13 +29,22 @@ RUN tdnf update -y && \
3329 tar \
3430 tzdata \
3531 which \
36- && tdnf clean all
32+ && dnf clean all
33+
34+ # Install msquic from previous AZL realese until azurelinux-official-ms-oss is available
35+ COPY azl3-repomd.xml.key /tmp/azl3-repomd.xml.key
36+
37+ RUN tdnf update -y && \
38+ tdnf install numactl-libs libxdp libnl3 --setopt tsflags=nodocs --refresh -y \
39+ && tdnf --repoid azl3 '--repofrompath=azl3,https://packages.microsoft.com/azurelinux/3.0/prod/ms-oss/$basearch' --setopt='azl3.gpgkey=file:///tmp/azl3-repomd.xml.key' --setopt=azl3.gpgcheck=1 --setopt=azl3.repo_gpgcheck=1 install -y libmsquic \
40+ && tdnf clean all \
41+ && rm -f /tmp/azl3-repomd.xml.key
3742
3843# create helixbot user and give rights to sudo without password
3944RUN /usr/sbin/useradd -c '' --uid 1000 --shell /bin/bash --groups adm helixbot && \
4045 chmod 755 /root && \
4146 echo "helixbot ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/helixbot && \
42- mkdir /home/helixbot/ && chown -R helixbot /home/helixbot/
47+ mkdir -p /home/helixbot/ && chown -R helixbot /home/helixbot/
4348
4449USER helixbot
4550
0 commit comments