diff --git a/Dockerfile b/Dockerfile index c3d09fe..ed7314c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,9 @@ VOLUME /config RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community/" >> /etc/apk/repositories \ && echo "http://dl-4.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \ - && apk add --update bash openvpn iptables shadow boost-system boost-thread ca-certificates unrar findutils perl gawk pacman \ - && yesterdays_date=$(date --date="-1 days ago" +%Y/%m/%d) \ + && apk add --update coreutils bash openvpn iptables shadow boost-system boost-thread ca-certificates unrar findutils perl gawk pacman + +RUN yesterdays_date=$(date --date="-1 days ago" +%Y/%m/%d) \ && echo 'Server = https://archive.archlinux.org/repos/'"${yesterdays_date}"'/$repo/os/$arch' > /etc/pacman.d/mirrorlist \ && echo 'Server = http://archive.virtapi.org/repos/'"${yesterdays_date}"'/$repo/os/$arch' >> /etc/pacman.d/mirrorlist \ && rm -rf /etc/pacman.d/gnupg/ /root/.gnupg/ || true \