diff --git a/orchestrator/orchestrator/docker/templates/Dockerfile b/orchestrator/orchestrator/docker/templates/Dockerfile index 9d02127..b49f631 100644 --- a/orchestrator/orchestrator/docker/templates/Dockerfile +++ b/orchestrator/orchestrator/docker/templates/Dockerfile @@ -2,12 +2,13 @@ FROM {{ parent_name|default("alpine", boolean=True) }} MAINTAINER {{ maintainer }} +RUN apt-get --allow-releaseinfo-change update -y + {% if parent_setup_command -%} {# We run this separately so that Docker can cache the layer. It effectively becomes another image that the site's image is inheriting from. #} RUN {{ parent_setup_command }} {% endif %} {% if install_command -%} -RUN apt-get --allow-releaseinfo-change update -y RUN {{ install_command }} {% endif %}