Skip to content

Instantly share code, notes, and snippets.

@kaperys
Last active February 18, 2019 10:51
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 kaperys/fa775750bc3ae441d88d8e08fd1af3dd to your computer and use it in GitHub Desktop.
Save kaperys/fa775750bc3ae441d88d8e08fd1af3dd to your computer and use it in GitHub Desktop.
Delve Dockerfile
FROM golang
WORKDIR /go/src/github.com/kaperys/delve-into-docker-app
EXPOSE 40000 1541
RUN go get github.com/derekparker/delve/cmd/dlv
ADD main.go .
CMD [ "dlv", "debug", "github.com/kaperys/delve-into-docker-app", "--listen=:40000", "--headless=true", "--api-version=2", "--log" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment