-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (29 loc) · 1014 Bytes
/
Dockerfile
File metadata and controls
33 lines (29 loc) · 1014 Bytes
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
FROM mcr.microsoft.com/cbl-mariner/base/core:2.0 as cm2
RUN tdnf install -y rpm-build make python3-devel
WORKDIR /src
RUN --mount=target=/src,rw make rpm && \
mkdir /out && \
cp -r /src/rpmbuild/RPMS/x86_64/*.rpm /out/
FROM mcr.microsoft.com/azurelinux/base/core:3.0 as azl3
RUN tdnf install -y rpm-build make python3-devel
WORKDIR /src
RUN --mount=target=/src,rw make rpm && \
mkdir /out && \
cp -r /src/rpmbuild/RPMS/x86_64/*.rpm /out/
FROM registry.access.redhat.com/ubi9:latest as el9
RUN yum install -y rpm-build make python3-devel
WORKDIR /src
RUN --mount=target=/src,rw make rpm && \
mkdir /out && \
cp -r /src/rpmbuild/RPMS/x86_64/*.rpm /out/
FROM registry.access.redhat.com/ubi8:latest as el8
RUN yum install -y rpm-build make python3-devel
WORKDIR /src
RUN --mount=target=/src,rw make rpm && \
mkdir /out && \
cp -r /src/rpmbuild/RPMS/x86_64/*.rpm /out/
FROM scratch
COPY --from=cm2 /out/* /
COPY --from=azl3 /out/* /
COPY --from=el8 /out/* /
COPY --from=el9 /out/* /