File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11ARG ARCH='amd64'
2- ARG ALPINE_VERSION
2+ ARG ALPINE_VERSION='3.13'
33
4- FROM multiarch/ alpine:${ARCH}-v ${ALPINE_VERSION}
4+ FROM alpine:${ALPINE_VERSION}
55RUN apk add --no-cache bash build-base cmake
66
77WORKDIR /nativebinaries
Original file line number Diff line number Diff line change 2424 dockerfile=" docker/linux"
2525fi
2626
27- docker buildx build -t $RID -f $dockerfile --build-arg ARCH=$arch --build-arg ALPINE_VERSION=$alpineVersion .
27+ docker run --privileged --rm tonistiigi/binfmt --install all
28+ docker buildx build --platform linux/$arch -t $RID -f $dockerfile --build-arg ALPINE_VERSION=$alpineVersion .
2829
29- docker run -t -e RID=$RID --name=$RID $RID
30+ docker run -t --platform linux/ $arch - e RID=$RID --name=$RID $RID
3031
3132docker cp $RID :/nativebinaries/nuget.package/runtimes nuget.package
3233
You can’t perform that action at this time.
0 commit comments