Skip to content

Commit

Permalink
Update Dockerfile to include Rider debug tools
Browse files Browse the repository at this point in the history
  • Loading branch information
rberrelleza authored Apr 10, 2024
1 parent b691b8c commit dc1709f
Showing 1 changed file with 12 additions and 4 deletions.
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"]

0 comments on commit dc1709f

Please sign in to comment.