Skip to content

Commit

Permalink
Lock apt cache to avoid lock problem during build
Browse files Browse the repository at this point in the history
  • Loading branch information
Andmedoctopus committed Oct 10, 2024
1 parent 584288a commit 438965f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM ${PULL_REPO}/python:3.11-slim

LABEL org.opencontainers.image.authors="[email protected]"

RUN --mount=type=cache,target=/var/cache/apt \
--mount=type=cache,target=/var/lib/apt \
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt update && \
apt upgrade -y vim

Expand Down

0 comments on commit 438965f

Please sign in to comment.