loop/tools/Dockerfile

19 lines
479 B
Text
Raw Normal View History

FROM golang:1.26
2022-05-20 08:56:21 +02:00
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates \
&& rm -rf /var/lib/apt/lists/*
ENV CGO_ENABLED=0 \
GOCACHE=/tmp/build/.cache \
GOMODCACHE=/tmp/build/.modcache \
GOFLAGS="-buildvcs=false"
2022-05-20 08:56:21 +02:00
COPY . /tmp/tools
RUN mkdir -p /tmp/build/.cache /tmp/build/.modcache \
&& cd /tmp/tools \
&& go install -trimpath github.com/golangci/golangci-lint/v2/cmd/golangci-lint \
&& chmod -R 777 /tmp/build/
2025-08-07 10:22:07 +02:00
WORKDIR /build