Files
aperture/tools/Dockerfile
Andras Banki-Horvath 84452ffdf4 build: bump go to v1.23.12
2025-08-07 10:31:32 +02:00

18 lines
423 B
Docker

FROM golang:1.23.12-bookworm
RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache
ENV GOMODCACHE=/tmp/build/.modcache
ENV GOFLAGS="-buildvcs=false"
COPY . /tmp/tools
RUN cd /tmp \
&& mkdir -p /tmp/build/.cache \
&& mkdir -p /tmp/build/.modcache \
&& cd /tmp/tools \
&& go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \
&& chmod -R 777 /tmp/build/
WORKDIR /build