Skip to content

Commit f33b3ca

Browse files
authored
Merge pull request #3 from reubeno/add-azl3
enable rpm build for Azure Linux 3.0
2 parents cd0e4bb + 393e96a commit f33b3ca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ RUN --mount=target=/src,rw make rpm && \
55
mkdir /out && \
66
cp -r /src/rpmbuild/RPMS/x86_64/*.rpm /out/
77

8+
FROM mcr.microsoft.com/azurelinux/base/core:3.0 as azl3
9+
RUN tdnf install -y rpm-build make python3-devel
10+
WORKDIR /src
11+
RUN --mount=target=/src,rw make rpm && \
12+
mkdir /out && \
13+
cp -r /src/rpmbuild/RPMS/x86_64/*.rpm /out/
14+
815
FROM registry.access.redhat.com/ubi9:latest as el9
916
RUN yum install -y rpm-build make python3-devel
1017
WORKDIR /src
@@ -21,5 +28,6 @@ RUN --mount=target=/src,rw make rpm && \
2128

2229
FROM scratch
2330
COPY --from=cm2 /out/* /
31+
COPY --from=azl3 /out/* /
2432
COPY --from=el8 /out/* /
2533
COPY --from=el9 /out/* /

0 commit comments

Comments
 (0)