Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dotnetcore Dockerfile to include Rider debug tools #112

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions dotnetcore/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
ARG VERSION=8.0
FROM mcr.microsoft.com/dotnet/sdk:$VERSION as base

RUN apt-get update && apt-get install -y unzip
RUN curl -sSL https://aka.ms/getvsdbgsh | /bin/sh /dev/stdin -v latest -l /root/vsdbg

RUN apt-get update && apt-get install -y unzip procps && \
curl -sSL https://aka.ms/getvsdbgsh | /bin/sh /dev/stdin -v latest -l /root/vsdbg && \
curl -L "https://data.services.jetbrains.com/products/download?code=RRD&platform=linux64" -o /tmp/RiderRemoteDebugger.zip && \
mkdir -p /root/.local/share/JetBrains/RiderRemoteDebugger/2024.1 && \
unzip /tmp/RiderRemoteDebugger.zip -d /root/.local/share/JetBrains/RiderRemoteDebugger/2024.1 && \
curl -L "https://download.jetbrains.com/rider/ssh-remote-debugging/linux-x64/jetbrains_debugger_agent_20230319.24.0" -o /usr/local/bin/debugger && \
chmod +x /usr/local/bin/debugger && \
rm -rf /var/lib/apt/lists/*

FROM mcr.microsoft.com/dotnet/sdk:$VERSION

WORKDIR /usr/src/app
Expand All @@ -12,5 +18,7 @@ WORKDIR /usr/src/app
COPY bashrc /root/.bashrc

COPY --from=base /root/vsdbg /usr/local/bin/vsdbg
COPY --from=base /usr/local/bin/debugger /usr/local/bin/debugger
COPY --from=base /root/.local/share/JetBrains/RiderRemoteDebugger/2024.1 /root/.local/share/JetBrains/RiderRemoteDebugger/2024.1

CMD ["bash"]
CMD ["bash"]
Loading