Skip to content

Commit

Permalink
Set RUN --mount=type=cache,sharing=private
Browse files Browse the repository at this point in the history
sharing=private is probably needed for parallel multi-arch buildx builds
  • Loading branch information
jennydaman committed Oct 12, 2023
1 parent f55bf39 commit f12c7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARG SRCDIR=/usr/local/src/app
WORKDIR ${SRCDIR}

COPY requirements.txt .
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt
RUN --mount=type=cache,sharing=private,target=/root/.cache/pip pip install -r requirements.txt

COPY . .
ARG extras_require=none
Expand Down

0 comments on commit f12c7a5

Please sign in to comment.