docker-ubuntumirror/Dockerfile

25 lines
659 B
Docker
Raw Normal View History

2016-04-08 20:41:48 +00:00
FROM phusion/baseimage:0.9.17
VOLUME /var/mirror
RUN echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d
RUN apt-get update
RUN apt-get install -y run-one nginx make debmirror
ADD ./mirror /opt/mirror
ADD ./mirror.run /etc/service/mirror/run
ADD nginx.conf /etc/nginx/nginx.conf
ADD ./nginx.run /etc/service/nginx/run
RUN chmod +x /etc/service/nginx/run && \
chmod +x /etc/service/mirror/run
RUN \
2016-04-08 21:24:53 +00:00
export GNUPGHOME=/etc/debmirror/ubuntu && \
mkdir -p $GNUPGHOME && \
chmod go-rwx $GNUPGHOME && \
2016-04-08 20:41:48 +00:00
gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg && \
gpg --import /usr/share/keyrings/ubuntu-master-keyring.gpg
EXPOSE 80