docker-golang-alpine/1.18/Dockerfile

13 lines
462 B
Docker
Raw Normal View History

2022-07-26 16:24:27 +03:00
FROM golang:1.18-alpine
2022-07-26 16:30:18 +03:00
WORKDIR /
2022-07-26 16:24:27 +03:00
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", "--"]