Skip to content

Instantly share code, notes, and snippets.

@segor
Created November 19, 2018 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save segor/dd98f3de05b23529af561ec4ed1305f7 to your computer and use it in GitHub Desktop.
Save segor/dd98f3de05b23529af561ec4ed1305f7 to your computer and use it in GitHub Desktop.
.net + core dump + lldb
FROM microsoft/dotnet:2.1.6-aspnetcore-runtime-stretch-slim
# Install debugging tools
## Install GDB (to create core dumps) and process tools
RUN apt-get update && apt-get -y install \
gdb \
procps
## Install LLDB debugger
RUN apt-get -y install lldb-4.0
ARG source
ARG port
WORKDIR /app
EXPOSE ${port:-80}
COPY ${source:-/Docker/publish} .
ENTRYPOINT ["dotnet", "App.dll"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment