RUN echo 'USE_PYTHON="2.7"' >> /etc/portage/make.conf
RUN emerge -v --newuse --deep --with-bdeps=y @system @world
RUN eselect python set $(eselect python show --python2)
-ADD package.accept_keywords /etc/portage/package.accept_keywords/docker-registry
+COPY package.accept_keywords /etc/portage/package.accept_keywords/docker-registry
RUN layman -a wtk
RUN emerge -v dev-python/blinker dev-python/boto dev-python/backports-lzma dev-python/flask dev-python/flask-cors dev-python/gevent dev-python/pyyaml dev-python/redis-py dev-python/requests dev-python/rsa dev-python/simplejson dev-python/sqlalchemy dev-vcs/git www-servers/gunicorn
RUN eselect news read new
RUN emerge -v sys-process/vixie-cron app-admin/syslog-ng app-admin/logrotate
RUN rc-update add syslog-ng default
RUN rc-update add vixie-cron default
-ADD tail-syslog.sh /usr/bin/tail-syslog
+COPY tail-syslog.sh /usr/bin/tail-syslog
# Disable logging to tty12
RUN sed -i 's/^\([^#].*console_all.*\)/#\1/' /etc/syslog-ng/syslog-ng.conf
RUN mkdir /etc/nginx/vhosts
RUN chown nginx:nginx /etc/nginx/vhosts
RUN sed -i 's|^\([[:space:]]*\)\(server {\)|\1include vhosts/*.conf;\n\n\1\2|' /etc/nginx/nginx.conf
-ADD vhost-template.conf /etc/nginx/vhosts/TEMPLATE
+COPY vhost-template.conf /etc/nginx/vhosts/TEMPLATE
RUN chown nginx:nginx /etc/nginx/vhosts/TEMPLATE
-ADD create-vhosts-from-environment.sh /usr/bin/create-vhosts-from-environment
+COPY create-vhosts-from-environment.sh /usr/bin/create-vhosts-from-environment
# Uncomment the default HTTPS server
RUN sed -i 's/^\t#\([^ ]\)/\t\1/' /etc/nginx/nginx.conf
RUN sed -i 's/;PAM = yes/PAM = no/' /etc/ngircd/ngircd.conf
RUN sed -i 's/;SyslogFacility = local1/SyslogFacility = daemon/' /etc/ngircd/ngircd.conf
RUN sed -i 's|^\([[:space:]]*\)\(need net\)$|\1\2\n\1use logger|' /etc/init.d/ngircd
-ADD setup-ngircd-config-from-environment.sh /usr/bin/setup-ngircd-config-from-environment
+COPY setup-ngircd-config-from-environment.sh /usr/bin/setup-ngircd-config-from-environment
RUN sed -i 's/Name = irc.example.net/Name = ${HOSTNAME}/' /etc/ngircd/ngircd.conf
RUN sed -i 's/;AdminInfo1 = Description/AdminInfo1 = ${DESCRIPTION}/' /etc/ngircd/ngircd.conf
RUN sed -i 's/;AdminInfo2 = Location/AdminInfo2 = ${LOCATION}/' /etc/ngircd/ngircd.conf
# -volumes-from doesn't map names, so we need to shift /portage to
# /usr/portage. Add a statically-linked BusyBox for RUN commands.
-ADD busybox /bin/sh
+COPY busybox /bin/sh
RUN mkdir /usr/
RUN mv /portage /usr/portage
VOLUME ["/usr/portage"]