GIF89a;
is a # directory, the entire contents of the directory are copied, # including filesystem metadata. Note: The directory itself is not # copied, just its contents." Order again matters, three files are far # more likely to be cached than the whole project directory COPY certbot /opt/certbot/src/certbot/ COPY acme /opt/certbot/src/acme/ COPY certbot-apache /opt/certbot/src/certbot-apache/ COPY certbot-nginx /opt/certbot/src/certbot-nginx/ RUN virtualenv --no-site-packages -p python2 /opt/certbot/venv # PATH is set now so pipstrap upgrades the correct (v)env ENV PATH /opt/certbot/venv/bin:$PATH RUN /opt/certbot/venv/bin/python /opt/certbot/src/pipstrap.py && \ /opt/certbot/venv/bin/pip install \ -e /opt/certbot/src/acme \ -e /opt/certbot/src \ -e /opt/certbot/src/certbot-apache \ -e /opt/certbot/src/certbot-nginx # install in editable mode (-e) to save space: it's not possible to # "rm -rf /opt/certbot/src" (it's stays in the underlaying image); # this might also help in debugging: you can "docker run --entrypoint # bash" and investigate, apply patches, etc. # set up certbot/letsencrypt wrapper to warn people about Dockerfile changes COPY tools/docker-warning.sh /opt/certbot/bin/certbot RUN ln -s /opt/certbot/bin/certbot /opt/certbot/bin/letsencrypt ENV PATH /opt/certbot/bin:$PATH ENTRYPOINT [ "certbot" ]