-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (17 loc) · 881 Bytes
/
Dockerfile
File metadata and controls
17 lines (17 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM golang:1.12-alpine
ENV CGO_ENABLED 0
RUN apk update \
&& apk add --no-cache dep bash mc git build-base libc6-compat vim \
&& mkdir /.cache \
&& chmod -R a+rw /.cache \
&& go get -u github.com/go-delve/delve/cmd/dlv \
&& mkdir -p ~/.config/dlv \
&& echo "aliases: {}" > ~/.config/dlv/config.yml \
&& echo "substitute-path: []" >> ~/.config/dlv/config.yml \
&& echo "max-string-len: 2048" >> ~/.config/dlv/config.yml \
&& echo "max-array-values: 512" >> ~/.config/dlv/config.yml \
&& echo "max-variable-recurse: 128" >> ~/.config/dlv/config.yml \
&& echo "show-location-expr: false" >> ~/.config/dlv/config.yml \
&& echo "source-list-line-color: 34" >> ~/.config/dlv/config.yml \
&& echo "debug-info-directories:" >> ~/.config/dlv/config.yml \
&& echo " - /usr/lib/debug/.build-id" >> ~/.config/dlv/config.yml