Skip to content

Commit cc56e70

Browse files
committed
Refactoring Dockerfiles
1 parent f212b67 commit cc56e70

4 files changed

+16
-20
lines changed

Dockerfile.debian12

+4-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ FROM debian:12
1717
COPY src /src
1818

1919
ARG DEBIAN_FRONTEND=noninteractive
20-
RUN apt update && \
20+
RUN apt update; \
2121
apt install -y gir1.2-nm-1.0 \
2222
python3-pip \
2323
python3-dev \
@@ -27,7 +27,6 @@ RUN apt update && \
2727
python3-guestfs \
2828
python3-openssl \
2929
python3-paramiko \
30-
python3-firewall
31-
32-
RUN python3 -m pip install --break-system-packages -U pip wheel setuptools && \
33-
python3 -m pip install --break-system-packages -r /src/requirements/build.txt
30+
python3-firewall; \
31+
python3 -m pip install --break-system-packages -U pip wheel setuptools; \
32+
python3 -m pip install --break-system-packages -r /src/requirements/build.txt

Dockerfile.rhel8

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FROM rockylinux:8
1616

1717
COPY src /src
1818

19-
RUN dnf install -y epel-release && \
19+
RUN dnf install -y epel-release; \
2020
dnf install -y python3-pip \
2121
python3-lxml \
2222
python3-devel \
@@ -26,7 +26,6 @@ RUN dnf install -y epel-release && \
2626
python3-firewall \
2727
python3-pyOpenSSL \
2828
python3-libnmstate \
29-
python3-libguestfs
30-
31-
RUN python3 -m pip install -U pip wheel setuptools && \
32-
python3 -m pip install -r /src/requirements/build.txt
29+
python3-libguestfs; \
30+
python3 -m pip install -U pip wheel setuptools; \
31+
python3 -m pip install -r /src/requirements/build.txt

Dockerfile.rhel9

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FROM rockylinux:9
1616

1717
COPY src /src
1818

19-
RUN dnf install -y epel-release && \
19+
RUN dnf install -y epel-release; \
2020
dnf install -y python3-pip \
2121
python3-lxml \
2222
python3-devel \
@@ -26,7 +26,6 @@ RUN dnf install -y epel-release && \
2626
python3-firewall \
2727
python3-pyOpenSSL \
2828
python3-libnmstate \
29-
python3-libguestfs
30-
31-
RUN python3 -m pip install -U pip wheel setuptools && \
32-
python3 -m pip install -r /src/requirements/build.txt
29+
python3-libguestfs; \
30+
python3 -m pip install -U pip wheel setuptools; \
31+
python3 -m pip install -r /src/requirements/build.txt

Dockerfile.ubuntu2204

+4-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ FROM ubuntu:22.04
1717
COPY src /src
1818

1919
ARG DEBIAN_FRONTEND=noninteractive
20-
RUN apt update && \
20+
RUN apt update; \
2121
apt install -y gir1.2-nm-1.0 \
2222
python3-pip \
2323
python3-dev \
@@ -27,7 +27,6 @@ RUN apt update && \
2727
python3-guestfs \
2828
python3-openssl \
2929
python3-paramiko \
30-
python3-firewall
31-
32-
RUN python3 -m pip install -U pip wheel setuptools && \
33-
python3 -m pip install -r /src/requirements/build.txt
30+
python3-firewall; \
31+
python3 -m pip install -U pip wheel setuptools; \
32+
python3 -m pip install -r /src/requirements/build.txt

0 commit comments

Comments
 (0)