diff --git a/Dockerfile b/Dockerfile index 0139d10..c4eda79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,9 @@ RUN chmod +x /etc/service/nginx/run && \ chmod +x /etc/service/mirror/run RUN \ + export GNUPGHOME=/etc/debmirror/ubuntu && \ + mkdir -p $GNUPGHOME && \ + chmod go-rwx $GNUPGHOME && \ gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg && \ gpg --import /usr/share/keyrings/ubuntu-master-keyring.gpg diff --git a/mirror/syncubuntu.sh b/mirror/syncubuntu.sh index bd69c61..c59375f 100755 --- a/mirror/syncubuntu.sh +++ b/mirror/syncubuntu.sh @@ -4,6 +4,8 @@ set -x THISDIR="$(cd $(dirname "$BASH_SOURCE") && pwd -P)" DST="/var/mirror" +export GNUPGHOME="/etc/debmirror/ubuntu" + debmirror \ -a i386,amd64 \ --no-source \