Skip to content

Commit

Permalink
dev: setup pip caching (#215)
Browse files Browse the repository at this point in the history
Auto-created
  • Loading branch information
MartinBernstorff authored Nov 19, 2023
1 parent 464453b commit be802d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WORKDIR /app

# Install build utilities and python requirements
COPY pyproject.toml ./
RUN pip install --user --no-cache-dir .
RUN --mount=type=cache,target=/root/.cache/pip pip install --user . --no-compile
COPY ./ ./

# Stage 2: Production
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ RUN pyright .

# Install deps
COPY pyproject.toml ./
RUN pip install --upgrade .[dev]
RUN pip install --upgrade .[tests]
RUN --mount=type=cache,target=/root/.cache/pip pip install pip install --upgrade .[dev]
RUN --mount=type=cache,target=/root/.cache/pip pip install pip install --upgrade .[tests]

# Ensure pyright builds correctly.
# If run in make validate, it is run in parallel, which breaks its installation.
Expand Down

0 comments on commit be802d6

Please sign in to comment.