Download an Alpine Linux mirror for apk downloads
Status : tested & working :heavy_check_mark:
This repository refactors victorb‘s mirror.sh
script
Setup your Alpine version and releases in mirror.sh
Run the mirror
container :
docker-compose build
docker-compose up mirror
Tips: We recommend you downloading the mirror from a cloud provider and then transfer the files to your computer.
Check your mirroring succeeded in ./mirror/*
or typing du -sh ./mirror
to check the volume
The default configuration should make you download 47G
Run the server :
docker-compose up -d server
Server will run on localhost:8080
To point your Alpine clients to your mirror, update their /etc/apk/repositories
file as follow :
http://localhost:8080/v3.13/main
http://localhost:8080/v3.13/community
Feel free to add a reverse proxy or update the nginx configuration file to secure the mirror with SSL/TLS
Feel free to send pull requests as well !