mirror of
https://github.com/Neur0toxine/docker-golang-alpine.git
synced 2024-11-22 13:06:06 +03:00
14 lines
413 B
Docker
14 lines
413 B
Docker
FROM golang:1.18-alpine
|
|
RUN set -eux; \
|
|
apk add --no-cache bash make git gcc libc-dev jq curl dumb-init && \
|
|
cd /tmp && \
|
|
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 && \
|
|
rm -rf delve && \
|
|
chmod -R 777 /go
|
|
WORKDIR /
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|