This is more generic, and it's easy to customize the mirror by using a
package-cache container as a transparent proxy. The clients can still
think they're using the generic mirror, but you can volume-mount an
/etc/conf.d/package-cache in the proxy container and set SOURCES to
whatever you like.
FROM ${NAMESPACE}/gentoo:${TAG}
MAINTAINER ${MAINTAINER}
RUN sed -i 's/#rc_sys=""/rc_sys="lxc"/g' /etc/rc.conf
-RUN echo 'GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/"' >> /etc/portage/make.conf
+RUN echo 'GENTOO_MIRRORS="http://distfiles.gentoo.org/"' >> /etc/portage/make.conf
#RUN echo 'SYNC="rsync://rsync.us.gentoo.org"' >> /etc/portage/make.conf
RUN mkdir -p /usr/portage
RUN chown -R portage:portage /usr/portage