-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathDockerfile.devel
More file actions
22 lines (20 loc) · 941 Bytes
/
Dockerfile.devel
File metadata and controls
22 lines (20 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:1.24-alpine3.22 AS base
#
# To accelerate the build process, you may uncomment this section.
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
#
RUN apk add --no-cache make clang15 libbpf-dev curl git \
musl-dev # for golangci-lint
ENV GOPATH="/go"
ENV GOROOT="/usr/local/go"
ENV GOPROXY="https://goproxy.cn,https://goproxy.io,direct"
ENV PATH="${GOPATH}/bin:${GOROOT}/bin:/usr/lib/llvm15/bin:${PATH}"
# For golang 1.24.0
# gofumpt@v0.9.0, https://github.com/mvdan/gofumpt/blob/master/CHANGELOG.md
# goimports@v0.41.0
# golangci-lint https://github.com/golangci/golangci-lint/blob/main/CHANGELOG-v1.md
RUN go install mvdan.cc/gofumpt@v0.9.0 && \
go install golang.org/x/tools/cmd/goimports@v0.41.0 && \
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.4 && \
go install github.com/vektra/mockery/v2@latest && \
go install mvdan.cc/sh/v3/cmd/shfmt@latest