diff options
author | Alex Brandt <alunduil@alunduil.com> | 2015-07-04 13:05:37 -0500 |
---|---|---|
committer | Alex Brandt <alunduil@alunduil.com> | 2015-07-04 13:05:37 -0500 |
commit | fe8dee5da688bcf3b23246a24c88ea61f8efb6d8 (patch) | |
tree | e9e59c2c086fac501bfb30d7d531f166bd1b81dd | |
parent | Merge branch 'master' of https://github.com/ChaosEngine/gentoo-docker-images ... (diff) | |
download | docker-images-fe8dee5da688bcf3b23246a24c88ea61f8efb6d8.tar.gz docker-images-fe8dee5da688bcf3b23246a24c88ea61f8efb6d8.tar.bz2 docker-images-fe8dee5da688bcf3b23246a24c88ea61f8efb6d8.zip |
clean up portage Dockerfile
Having these commands in one layer does not decrease the image size and
splitting them up increases understanding of the Dockerfile.
Portage should not inherit from any other overlays and should not have a
masters = gentoo line. The default layout.conf values are the desired
values since this image is meant to be the gentoo repository in
containers that want to use its volume.
-rw-r--r-- | portage/Dockerfile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/portage/Dockerfile b/portage/Dockerfile index e78c52f..a341a02 100644 --- a/portage/Dockerfile +++ b/portage/Dockerfile @@ -2,7 +2,7 @@ FROM busybox:latest MAINTAINER Gentoo Container Team <containers@gentoo.org> ADD http://distfiles.gentoo.org/snapshots/portage-latest.tar.bz2 / -RUN mkdir -p /usr && bzcat /portage-latest.tar.bz2 | tar -xf - -C /usr \ - && mkdir -p /usr/portage/{distfiles,metadata,packages} \ - && echo "masters = gentoo" > /usr/portage/metadata/layout.conf \ - && rm -f /portage-latest.tar.bz2 + +RUN mkdir -p /usr +RUN bzcat /portage-latest.tar.bz2 | tar -xf - -C /usr +RUN mkdir -p /usr/portage/{distfiles,metadata,packages} |