FROM registry.fedoraproject.org/fedora:rawhide
MAINTAINER "Fedora Infrastructure" <admin@fedoraproject.org>
ENV VERSION=0.8.4
LABEL BZComponent="mirrormanager2-mirrorlist" \
Name="$FGC/mirrormanager2-mirrorlist" \
Version="$VERSION" \
Architecture="x86_64"
RUN dnf install -y mirrormanager2-mirrorlist httpd mod_wsgi GeoIP-GeoLite-data-extra
RUN dnf install -y patch
COPY logging.patch /root
RUN patch -p1 /usr/share/mirrormanager2/mirrorlist_server.py </root/logging.patch
COPY run.sh /root
RUN chmod +x /root/run.sh
VOLUME ["/var/lib/mirrormanager"]
EXPOSE 80
ENTRYPOINT ["/usr/bin/bash", "/root/run.sh"]
CMD []