[docker] Fix multi-arch builds
This commit is contained in:
parent
76cad826a8
commit
a5b30585e8
1 changed files with 1 additions and 0 deletions
|
@ -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; \
|
||||||
|
|
Loading…
Add table
Reference in a new issue