docker-ubuntumirror/Dockerfile
2016-04-08 22:41:48 +02:00

22 lines
549 B
Docker

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 \
gpg --import /usr/share/keyrings/ubuntu-archive-keyring.gpg && \
gpg --import /usr/share/keyrings/ubuntu-master-keyring.gpg
EXPOSE 80