docker-golang-alpine/1.22/Dockerfile

15 lines
771 B
Docker
Raw Permalink Normal View History

2024-02-14 09:42:54 +03:00
FROM golang:1.22-alpine
RUN set -eux; \
2024-03-25 13:01:18 +03:00
apk add --no-cache bash make git gcc libc-dev jq curl dumb-init mailcap tzdata && \
2024-02-14 09:42:54 +03:00
go install github.com/go-delve/delve/cmd/dlv@latest && \
2024-06-05 16:20:01 +03:00
go install github.com/air-verse/air@latest && \
2024-02-14 09:42:54 +03:00
go install github.com/jstemmer/go-junit-report@latest && \
go install github.com/axw/gocov/gocov@latest && \
go install gotest.tools/gotestsum@latest && \
chmod -R 777 "$GOPATH" && \
curl -L https://github.com/tobni/merge-junit/releases/download/v0.1.4/merge-junit-v0.1.4-x86_64-unknown-linux-musl.tar.gz | tar -xz && \
mv ./merge-junit-v0.1.4-x86_64-unknown-linux-musl/merge-junit /usr/bin/merge-junit && \
rm -rf /merge-junit-v0.1.4-x86_64-unknown-linux-musl
WORKDIR /
ENTRYPOINT ["/usr/bin/dumb-init", "--"]