Skip to content

Commit

Permalink
Regenerate static files
Browse files Browse the repository at this point in the history
  • Loading branch information
philipnbbc committed Sep 5, 2024
1 parent e7317bf commit 5603563
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions static-commontooling/docker/Dockerfile_multi_macros.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down Expand Up @@ -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 }}

Expand Down

0 comments on commit 5603563

Please sign in to comment.