jlesage / docker-firefox

Docker container for Firefox
MIT License
1.4k stars 266 forks source link

[Feature request] Hope can use custom repo when install CJK #199

Closed nibazshab closed 7 months ago

nibazshab commented 8 months ago

Idea

In some countries, for some special reasons, cannot connect to dl-cdn.alpinelinux.org. So i hope can use custom repo

This is my idea:

Add a environment APKREPO, like APKREPO=mirrors.aliyun.com. And add a row like if [ ! -z $APKREPO ]; then sed -i "s/dl-cdn.alpinelinux.org/$APKREPO/g" /etc/apk/repositories; fi to 10-cjk-font.sh

nibazshab commented 8 months ago

Maybe I can submit a pr, but I don't find 10-cjk-font.sh in this repo :

jlesage commented 8 months ago

This part is shared across multiple containers, both based on Alpine and Debian/Ubuntu. So I will add a generic solution that works in all cases.

jlesage commented 7 months ago

PACKAGES_MIRROR environment variable can now be used for this purpose.