This commit is contained in:
Jeffrey Paul 2019-01-25 06:10:37 +00:00
parent d607b6ddc4
commit 18828fdc8e
2 changed files with 9 additions and 6 deletions

View File

@ -7,7 +7,7 @@ RUN echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d
# phusion baseimage says i'm not supposed to do this # phusion baseimage says i'm not supposed to do this
# and i don't care: # and i don't care:
RUN apt-get update && apt-get upgrade -y RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y run-one nginx make debmirror RUN apt-get install -y run-one nginx make debmirror xz-utils
ADD ./mirror /opt/mirror ADD ./mirror /opt/mirror
ADD ./mirror.run /etc/service/mirror/run ADD ./mirror.run /etc/service/mirror/run
@ -22,6 +22,6 @@ RUN \
mkdir -p $GNUPGHOME && \ mkdir -p $GNUPGHOME && \
chmod go-rwx $GNUPGHOME && \ chmod go-rwx $GNUPGHOME && \
gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg && \ gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg && \
cp $GNUPGHOME/pubring.gpg $GNUPGHOME/trustedkeys.gpg cp $GNUPGHOME/pubring.kbx $GNUPGHOME/trustedkeys.kbx
EXPOSE 80 EXPOSE 80

View File

@ -1,4 +1,7 @@
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic main universe # this can't be {us.,}archive.ubuntu.org because on the box
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates main universe # with dnsmasq changing that host to itself, rebuilding this fails
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-backports main universe # unless the container is running already
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-security main universe deb http://mirrors.sonic.net/ubuntu bionic main universe
deb http://mirrors.sonic.net/ubuntu bionic-updates main universe
deb http://mirrors.sonic.net/ubuntu bionic-backports main universe
deb http://mirrors.sonic.net/ubuntu bionic-security main universe