Skip to content

add Mirror fix & Mirror protocol#3

Open
Heinmyatko1996 wants to merge 1 commit intomlsdpk:masterfrom
Heinmyatko1996:master
Open

add Mirror fix & Mirror protocol#3
Heinmyatko1996 wants to merge 1 commit intomlsdpk:masterfrom
Heinmyatko1996:master

Conversation

@Heinmyatko1996
Copy link

Updated the mirror URLs from http to https in files under /etc/apt/sources.list.d/ (since /etc/apt/sources.list doesn’t exist).
Installed curl and ca-certificates first to avoid network-related issues.
Re-ordered and split some steps for better reliability and clarity.

@mlsdpk mlsdpk self-requested a review June 22, 2025 22:37
@mlsdpk mlsdpk added the bug Something isn't working label Jun 22, 2025
Copy link
Owner

@mlsdpk mlsdpk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Looks good overall. Just a few minor changes are needed and we're good to go.

Comment on lines +6 to 15
# Fix DNS or HTTP-related fetch issues first
RUN find /etc/apt/sources.list.d -name "*.list" -exec sed -i 's|http://deb.debian.org|https://deb.debian.org|g' {} + && \
apt-get update && \
apt-get install -y curl ca-certificates && \
rm -rf /var/lib/apt/lists/*

# Install Python
RUN apt-get update && \
apt-get install -y python3 python3-pip python3-venv && \
rm -rf /var/lib/apt/lists/*
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could consider reducing our image layers by combining these two installation steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants