Skip to content

Commit

Permalink
add python install caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Dec 5, 2023
1 parent bcf55da commit e14977f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ RUN apt-get update && apt-get install --no-install-recommends -y -q \
COPY --from=iqtlabs/gamutrf-base:latest /usr/local /usr/local
WORKDIR /gamutrf
COPY poetry.lock pyproject.toml README.md /gamutrf/
RUN poetry run pip install --no-cache-dir pandas=="$(grep pandas pyproject.toml | grep -Eo '[0-9\.]+')"
RUN --mount=type=cache,target=/root/.cache poetry run pip install --no-cache-dir pandas=="$(grep pandas pyproject.toml | grep -Eo '[0-9\.]+')"
# dependency install is cached for faster rebuild, if only gamutrf source changed.
RUN poetry install --no-interaction --no-ansi --no-dev --no-root
RUN --mount=type=cache,target=/root/.cache poetry install --no-interaction --no-ansi --no-dev --no-root
COPY gamutrf gamutrf/
COPY bin bin/
COPY templates templates/
RUN poetry install --no-interaction --no-ansi --no-dev
RUN --mount=type=cache,target=/root/.cache poetry install --no-interaction --no-ansi --no-dev

# nosemgrep:github.workflows.config.dockerfile-source-not-pinned
FROM ubuntu:22.04
Expand Down

0 comments on commit e14977f

Please sign in to comment.