Update Dockerfile

This commit is contained in:
MarkusMcNugen 2018-02-12 00:55:55 -05:00 committed by GitHub
parent 2788be6e7c
commit 14f1465a81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community/" >> /etc/apk/reposi
&& apk add --update coreutils bash openvpn iptables shadow boost-system boost-thread ca-certificates unrar findutils perl gawk pacman && 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) \ RUN yesterdays_date=$(date --date="-1 days ago" +%Y/%m/%d) \
&& mkdir -p /etc/pacman.d \
&& echo 'Server = https://archive.archlinux.org/repos/'"${yesterdays_date}"'/$repo/os/$arch' > /etc/pacman.d/mirrorlist \ && 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 \ && 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 \ && rm -rf /etc/pacman.d/gnupg/ /root/.gnupg/ || true \