-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (15 loc) · 766 Bytes
/
Dockerfile
File metadata and controls
17 lines (15 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM --platform=$BUILDPLATFORM curlimages/curl as netcore
ARG BUILDPLATFORM
ARG TARGETPLATFORM
# assume glibc; RuntimeIDs gleaned from the getvsdbgsh script
RUN RuntimeID=$(case "$TARGETPLATFORM" in linux/amd64) echo linux-musl-x64;; linux/arm64) echo linux-arm64;; *) exit 1;; esac); \
mkdir $HOME/vsdbg && curl -sSL https://aka.ms/getvsdbgsh | sh /dev/stdin -v latest -l $HOME/vsdbg -r $RuntimeID
# Now populate the duct-tape image with the language runtime debugging support files
# The debian image is about 95MB bigger
FROM --platform=$TARGETPLATFORM busybox
ARG TARGETPLATFORM
# The install script copies all files in /duct-tape to /dbg
COPY install.sh /
CMD ["/bin/sh", "/install.sh"]
WORKDIR /duct-tape
COPY --from=netcore /home/curl_user/vsdbg/ netcore/