Fix/cleanup container build files

This commit is contained in:
Gregory Kurtzer
2022-03-02 20:05:51 -08:00
parent b60cacbd0f
commit acd7bdbf51
2 changed files with 9 additions and 0 deletions

View File

@@ -41,12 +41,17 @@ RUN <<EOF
chmod +x /etc/warewulf/container_exit.sh
EOF
COPY <<EOF /etc/warewulf/container_exit.sh
#!/bin/sh
set -x
LANG=C
LC_CTYPE=C
export LANG LC_CTYPE
dnf clean all
EOF
COPY <<EOF /etc/warewulf/excludes
/boot/
/usr/share/GeoIP
EOF

View File

@@ -44,10 +44,14 @@ EOF
COPY <<EOF /etc/warewulf/container_exit.sh
#!/bin/sh
set -x
LANG=C
LC_CTYPE=C
export LANG LC_CTYPE
dnf clean all
EOF
COPY <<EOF /etc/warewulf/excludes
/boot/
/usr/share/GeoIP
EOF