build: move kconfig fix-up to correct position in Dockerfile
This commit is contained in:
parent
fe5e54c6d7
commit
26be9035bd
1 changed files with 3 additions and 3 deletions
|
|
@ -31,9 +31,6 @@ COPY --from=scx-build /build/scx/services/scx.service /usr/lib/systemd/system/sc
|
||||||
# dnf configuration has to be in effect during build
|
# dnf configuration has to be in effect during build
|
||||||
COPY etc/dnf /etc/dnf
|
COPY etc/dnf /etc/dnf
|
||||||
|
|
||||||
# fix-up kconfig path
|
|
||||||
RUN sed -i "/SCX_FLAGS=/ s/$/ --kconfig \/usr\/lib\/modules\/$(uname -r)\/config/" /etc/default/scx
|
|
||||||
|
|
||||||
# Add rpmfusion repositories
|
# Add rpmfusion repositories
|
||||||
RUN dnf5 -y install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
RUN dnf5 -y install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||||
|
|
||||||
|
|
@ -65,6 +62,9 @@ RUN dnf5 -y install ntsync-autoload
|
||||||
COPY etc /etc
|
COPY etc /etc
|
||||||
COPY usr /usr
|
COPY usr /usr
|
||||||
|
|
||||||
|
# fix-up kconfig path
|
||||||
|
RUN sed -i "/SCX_FLAGS=/ s/$/ --kconfig \/usr\/lib\/modules\/$(uname -r)\/config/" /etc/default/scx
|
||||||
|
|
||||||
# Apply hardened firewall configuration
|
# Apply hardened firewall configuration
|
||||||
RUN firewall-offline-cmd --set-default-zone public
|
RUN firewall-offline-cmd --set-default-zone public
|
||||||
RUN firewall-offline-cmd --remove-service ssh
|
RUN firewall-offline-cmd --remove-service ssh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue