FROM ${NAMESPACE}/gentoo-syslog:${TAG}
MAINTAINER ${MAINTAINER}
#VOLUME ["${PORTAGE}:/usr/portage:ro", "${PORTAGE}/distfiles:/usr/portage/distfiles:rw"]
+
+RUN mkdir /etc/portage/package.accept_keywords
+RUN mkdir /etc/portage/package.use
+# avoid a Python 2 dependency
+RUN echo 'dev-vcs/git -python' >> /etc/portage/package.use/layman
+RUN echo 'app-portage/layman ~amd64' >> /etc/portage/package.accept_keywords/layman
+# required by app-portage/layman-2.1.0-r2
+# =dev-python/ssl-fetch-0.2.1 ~amd64
+RUN echo 'dev-python/ssl-fetch ~amd64' >> /etc/portage/package.accept_keywords/layman
+
RUN emerge -v layman
RUN eselect news read new
RUN echo 'source /var/lib/layman/make.conf' >> /etc/portage/make.conf