From 3e8fb677cbcc3d583688be2daaec523ee32f26c7 Mon Sep 17 00:00:00 2001 From: Philip de Nier Date: Thu, 5 Sep 2024 11:23:41 +0100 Subject: [PATCH] Regenerate static files --- static-commontooling/docker/Dockerfile_multi_macros.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static-commontooling/docker/Dockerfile_multi_macros.j2 b/static-commontooling/docker/Dockerfile_multi_macros.j2 index 9fd3eb7..754f2ab 100644 --- a/static-commontooling/docker/Dockerfile_multi_macros.j2 +++ b/static-commontooling/docker/Dockerfile_multi_macros.j2 @@ -27,6 +27,8 @@ COPY --from=api /api ./{{ modname }}/apidocs {% endif -%} COPY . . +RUN --mount=type=cache,target=/root/.cache/pip --mount=type=secret,id=pipconf,target=/etc/pip.conf pip install setuptools + RUN python3 setup.py sdist {%- endmacro %} @@ -66,6 +68,9 @@ COPY {{ extra_requirements_file }} ./ RUN cat {{ extra_requirements_file }} >> ./requirements.txt {%- endif %} +# Ensure setuptools is installed +RUN --mount=type=cache,target=/root/.cache/pip --mount=type=secret,id=pipconf,target=/etc/pip.conf pip install setuptools + {% if install_target != None -%} RUN --mount=type=cache,target=/root/.cache/pip --mount=type=secret,id=pipconf,target=/etc/pip.conf mkdir -p {{ install_target }} && pip install -f ./wheels -r requirements.txt -t {{ install_target }}