mirror of
https://github.com/Neur0toxine/docker-golang-alpine.git
synced 2024-11-29 00:25:27 +03:00
12 lines
452 B
Docker
12 lines
452 B
Docker
|
FROM golang:1.16-alpine
|
||
|
RUN apk add --no-cache bash make git gcc libc-dev jq curl dumb-init
|
||
|
RUN cd /tmp && \
|
||
|
git clone https://github.com/go-delve/delve && \
|
||
|
cd delve && \
|
||
|
go install github.com/go-delve/delve/cmd/dlv && \
|
||
|
cd .. && \
|
||
|
curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin && \
|
||
|
rm -rf delve && \
|
||
|
chmod -R 777 /go
|
||
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|