lnd/tools/Dockerfile
ziggie a7ca338720
build: update CI+release version to Go 1.25.5
This updates the toolchain which we require to build the LND
executable.

(cherry picked from commit 61d82fd1f2)
2026-01-13 20:30:09 +01:00

19 lines
543 B
Docker

FROM golang:1.25.5
RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache
ENV GOMODCACHE=/tmp/build/.modcache
COPY . /tmp/tools
RUN cd /tmp \
&& mkdir -p /tmp/build/.cache \
&& mkdir -p /tmp/build/.modcache \
&& cd /tmp/tools \
&& CGO_ENABLED=0 go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \
&& CGO_ENABLED=0 golangci-lint custom \
&& mv ./custom-gcl /usr/local/bin/custom-gcl \
&& chmod -R 777 /tmp/build/ \
&& git config --global --add safe.directory /build
WORKDIR /build