-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (40 loc) · 1.07 KB
/
Dockerfile
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
36
37
38
39
40
41
42
# IMPORTANT: podman must be build from ubi8.x only. Do not upgrade it to ubi9.
FROM registry.access.redhat.com/ubi8/ubi:8.10-1020 as podman-builder
# hadolint ignore=DL3041
RUN \
dnf update --assumeyes --disableplugin=subscription-manager \
&& dnf install --assumeyes --disableplugin=subscription-manager \
git \
make \
golang \
gpgme-devel \
libseccomp-devel \
libassuan-devel \
python3 \
&& dnf clean all \
&& git clone https://github.com/containers/podman.git
WORKDIR /podman
RUN \
git checkout v4.9.5 \
&& make
FROM registry.access.redhat.com/ubi9/ubi:9.4-1181
# hadolint ignore=DL3041
RUN \
dnf update --assumeyes --disableplugin=subscription-manager \
&& dnf install --assumeyes --disableplugin=subscription-manager \
ethtool \
iproute \
iptables \
iputils \
jq \
libselinux-utils \
net-tools \
nftables \
pciutils \
procps-ng \
util-linux \
&& dnf clean all --assumeyes --disableplugin=subscription-manager \
&& rm -fr /var/cache/yum \
&& mkdir /root/podman
COPY --from=podman-builder /podman/bin/podman /root/podman/
VOLUME ["/host"]