docker-golang-alpine/1.16-3.13/Dockerfile

14 lines
417 B
Docker
Raw Normal View History

2022-07-26 16:24:27 +03:00
FROM golang:1.16-alpine3.13
RUN set -eux; \
apk add --no-cache bash make git gcc libc-dev jq curl dumb-init && \
cd /tmp && \
2022-07-26 16:24:27 +03:00
git clone https://github.com/go-delve/delve && \
cd delve && \
go install github.com/go-delve/delve/cmd/dlv && \
cd / && \
go install github.com/cosmtrek/air@latest && \
2022-07-26 16:24:27 +03:00
rm -rf delve && \
chmod -R 777 /go
WORKDIR /
2022-07-26 16:24:27 +03:00
ENTRYPOINT ["/usr/bin/dumb-init", "--"]