[docker] Fix multi-arch builds

This commit is contained in:
Laura Hausmann 2024-07-03 03:55:58 +02:00
parent 76cad826a8
commit a5b30585e8
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -39,6 +39,7 @@ RUN --mount=type=cache,target=/root/.nuget \
ARG TARGETPLATFORM ARG TARGETPLATFORM
ARG TARGETARCH ARG TARGETARCH
RUN ln -sf /bin/bash /bin/sh
RUN --mount=type=cache,target=/root/.nuget \ RUN --mount=type=cache,target=/root/.nuget \
if [[ "$BUILDPLATFORM" != "$TARGETPLATFORM" ]]; then \ if [[ "$BUILDPLATFORM" != "$TARGETPLATFORM" ]]; then \
dotnet restore -a $TARGETARCH -p:Configuration=Release -p:BundleNativeDeps=$VIPS -p:EnableLibVips=$VIPS; \ dotnet restore -a $TARGETARCH -p:Configuration=Release -p:BundleNativeDeps=$VIPS -p:EnableLibVips=$VIPS; \