Last active
February 18, 2019 10:51
-
-
Save kaperys/fa775750bc3ae441d88d8e08fd1af3dd to your computer and use it in GitHub Desktop.
Delve Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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