Skip to content

Commit

Permalink
Merge pull request #43 from bbc/philipn-update-static-files
Browse files Browse the repository at this point in the history
Regenerate static files
  • Loading branch information
philipnbbc authored Sep 5, 2024
2 parents 3ca73b7 + 3e8fb67 commit 4081062
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 4081062

Please sign in to comment.