File tree 1 file changed +9
-7
lines changed
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
5
7
6
8
# Now populate the duct-tape image with the language runtime debugging support files
7
9
# The debian image is about 95MB bigger
8
- FROM busybox
9
- ARG BUILDPLATFORM
10
+ FROM --platform=$TARGETPLATFORM busybox
11
+ ARG TARGETPLATFORM
10
12
11
13
# The install script copies all files in /duct-tape to /dbg
12
14
COPY install.sh /
13
15
CMD ["/bin/sh" , "/install.sh" ]
14
16
WORKDIR /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