2023-02-23 10:32:07 +00:00
|
|
|
FROM golang:1.19.4-buster
|
2022-07-18 07:24:17 +00:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y git
|
|
|
|
ENV GOCACHE=/tmp/build/.cache
|
|
|
|
ENV GOMODCACHE=/tmp/build/.modcache
|
2023-02-23 10:32:07 +00:00
|
|
|
ENV GOFLAGS="-buildvcs=false"
|
2022-07-18 07:24:17 +00:00
|
|
|
|
|
|
|
COPY . /tmp/tools
|
|
|
|
|
|
|
|
RUN cd /tmp \
|
|
|
|
&& mkdir -p /tmp/build/.cache \
|
|
|
|
&& mkdir -p /tmp/build/.modcache \
|
|
|
|
&& cd /tmp/tools \
|
2023-02-23 10:32:07 +00:00
|
|
|
&& go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \
|
2022-07-18 07:24:17 +00:00
|
|
|
&& chmod -R 777 /tmp/build/
|
|
|
|
|
|
|
|
WORKDIR /build
|