File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/dotnet/runtime:6.0 as netcore
2- RUN apt-get update \
3- && apt-get install -y --no-install-recommends unzip curl \
4- && curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l /vsdbg
1+ FROM --platform=$BUILDPLATFORM curlimages/curl as netcore
2+ ARG BUILDPLATFORM
3+ ARG TARGETPLATFORM
4+ # assume glibc; RuntimeIDs gleaned from the getvsdbgsh script
5+ RUN RuntimeID=$(case "$TARGETPLATFORM" in linux/amd64) echo linux-x64;; linux/arm64) echo linux-arm64;; *) exit 1;; esac); \
6+ mkdir $HOME/vsdbg && curl -sSL https://aka.ms/getvsdbgsh | sh /dev/stdin -v latest -l $HOME/vsdbg -r $RuntimeID
57
68# Now populate the duct-tape image with the language runtime debugging support files
79# The debian image is about 95MB bigger
8- FROM busybox
9- ARG BUILDPLATFORM
10+ FROM --platform=$TARGETPLATFORM busybox
11+ ARG TARGETPLATFORM
1012
1113# The install script copies all files in /duct-tape to /dbg
1214COPY install.sh /
1315CMD ["/bin/sh" , "/install.sh" ]
1416WORKDIR /duct-tape
15- COPY --from=netcore /vsdbg/ netcore/
17+ COPY --from=netcore /home/curl_user/ vsdbg/ netcore/
You can’t perform that action at this time.
0 commit comments