1
0
Fork 0

Move applying configuration to end of build

When applied before package installations/removals, some files might get
modified/deleted.
This commit is contained in:
ver4a 2024-11-10 11:19:27 +01:00
parent 13ff41252c
commit f8475166e0
2 changed files with 6 additions and 6 deletions

View file

@ -1,8 +1,5 @@
FROM quay.io/fedora-ostree-desktops/kinoite:41 FROM quay.io/fedora-ostree-desktops/kinoite:41
# Apply configuration
COPY etc /etc
# Remove firefox # Remove firefox
RUN rpm-ostree override remove firefox firefox-langpacks RUN rpm-ostree override remove firefox firefox-langpacks
@ -26,5 +23,8 @@ RUN rpm-ostree override remove bash-color-prompt
# Remove rpm metadata cache # Remove rpm metadata cache
RUN rpm-ostree cleanup --repomd RUN rpm-ostree cleanup --repomd
# Apply configuration
COPY etc /etc
# https://github.com/ostreedev/ostree-rs-ext/issues/159 # https://github.com/ostreedev/ostree-rs-ext/issues/159
RUN ostree container commit RUN ostree container commit

View file

@ -1,8 +1,5 @@
FROM quay.io/fedora-ostree-desktops/kinoite:41 FROM quay.io/fedora-ostree-desktops/kinoite:41
# Apply configuration
COPY etc /etc
# Remove firefox # Remove firefox
RUN rpm-ostree override remove firefox firefox-langpacks RUN rpm-ostree override remove firefox firefox-langpacks
@ -30,5 +27,8 @@ RUN rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia-cuda && \
# Remove rpm metadata cache # Remove rpm metadata cache
RUN rpm-ostree cleanup --repomd RUN rpm-ostree cleanup --repomd
# Apply configuration
COPY etc /etc
# https://github.com/ostreedev/ostree-rs-ext/issues/159 # https://github.com/ostreedev/ostree-rs-ext/issues/159
RUN ostree container commit RUN ostree container commit