mirror of
https://github.com/Neur0toxine/docker-golang-alpine.git
synced 2024-11-21 20:46:05 +03:00
15 lines
772 B
Docker
15 lines
772 B
Docker
FROM golang:1.16-alpine
|
|
RUN set -eux; \
|
|
apk add --no-cache bash make git gcc libc-dev jq curl dumb-init mailcap tzdata && \
|
|
go install github.com/go-delve/delve/cmd/dlv@v1.9.0 && \
|
|
go install github.com/cosmtrek/air@v1.27.8 && \
|
|
go install github.com/jstemmer/go-junit-report@latest && \
|
|
go install github.com/axw/gocov/gocov@latest && \
|
|
go install gotest.tools/gotestsum@v1.10.0 && \
|
|
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", "--"]
|