From f6d580171b6b1a33ecee04d4cf241026a67214b7 Mon Sep 17 00:00:00 2001 From: Justin Lee <2025jlee@tjhsst.edu> Date: Fri, 5 Jan 2024 15:06:55 -0500 Subject: [PATCH] fix(orchestrator): update dockerfile template to also work with parent_setup_command --- orchestrator/orchestrator/docker/templates/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 %}