diff --git a/docker/Dockerfile b/docker/Dockerfile index 4133cf96f1..8db37e4383 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -28,8 +28,11 @@ RUN git config --system --add safe.directory '*' # volume mount point at runtime - anything `ccache -M` writes to a config # file under it during this build gets shadowed once the real volume is # mounted, so the size cap only actually takes effect via the env var. +# 2G is generous: a full build (IfcParse+IfcGeom+IfcConvert+wrapper, one +# Python version) measures ~300MB, and the volume is now shared across all +# checkouts (see compose.yaml), so this covers several diverging branches. ENV CCACHE_DIR=/ccache -ENV CCACHE_MAXSIZE=5G +ENV CCACHE_MAXSIZE=2G ENV PATH="/usr/lib/ccache:$PATH" # Non-root user matching the host UID/GID that bind-mounts the repo (default diff --git a/docker/compose.yaml b/docker/compose.yaml index fcd5f17745..e2bb7d1c31 100644 --- a/docker/compose.yaml +++ b/docker/compose.yaml @@ -20,3 +20,4 @@ services: volumes: ccache: + name: ifcopenshell-ccache-shared