Update Dockerfile

This commit is contained in:
MarkusMcNugen 2018-02-12 00:46:13 -05:00 committed by GitHub
parent f7792a9e0d
commit e66e07c053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,13 +11,13 @@ VOLUME /config
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community/" >> /etc/apk/repositories \ 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 \ && 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 \ && apk add --update bash openvpn iptables shadow boost-system boost-thread ca-certificates unrar findutils perl gawk pacman \
&& yesterdays_date=$(date -d "yesterday" +%Y/%m/%d) && yesterdays_date=$(date -d "yesterday" +%Y/%m/%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 \
&& gpg --refresh-keys && gpg --refresh-keys \
&& pacman-key --init && pacman-key --populate archlinux && pacman-key --init && pacman-key --populate archlinux \
&& pacman -S grep net-tools --noconfirm && pacman -S grep net-tools --noconfirm \
RUN usermod -u 99 nobody RUN usermod -u 99 nobody