Last active
August 14, 2023 19:23
-
-
Save magnetikonline/3a841b5268d5581b4422 to your computer and use it in GitHub Desktop.
Dockerfile Ubuntu apt-get AU mirror switching.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
LABEL maintainer="Peter Mescalchin <[email protected]>" | |
RUN sed --in-place --regexp-extended "s/(\/\/)(archive\.ubuntu)/\1au.\2/" /etc/apt/sources.list && \ | |
apt-get update && apt-get upgrade --yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
super ! thanks for this idea, was able to easily adopt this to other countries and also move from a country to the main server.
s/(\/\/)au.(archive\.ubuntu)/\1\2/
will remove au and go back to main server.
EDIT: I put your sed recipe in code blocks.