mirror of
https://github.com/dockersrc/almalinux
synced 2026-06-30 17:45:54 -04:00
🗃️ Strip CRB repos before fetching repo files in 8-dev image 🗃️
Dockerfile.8-dev: remove any /etc/yum.repos.d/*crb*.repo files before running fetch-repo-file. The earlier crb removal step ran only after fetch-repo-file, leaving stale CRB repos in place during the fetch. Dockerfile.8-dev
This commit is contained in:
@@ -113,6 +113,7 @@ RUN echo "Initializing packages before copying files to image"; \
|
||||
|
||||
RUN echo "Setting up dev system"; \
|
||||
if [ -f "/usr/local/bin/pkmgr" ] ; then rm -Rf "/usr/local/bin/pkmgr"; fi; \
|
||||
rm -f /etc/yum.repos.d/*crb*.repo 2>/dev/null || true; \
|
||||
bash -c "$(curl -q -LSsf "https://github.com/casjay-base/centos/raw/main/root/.local/bin/fetch-repo-file")"; \
|
||||
rm -f /etc/yum.repos.d/*crb*.repo 2>/dev/null || true; \
|
||||
dnf clean all 2>/dev/null || true; \
|
||||
|
||||
Reference in New Issue
Block a user