lnd/tools/Dockerfile

20 lines
516 B
Text
Raw Normal View History

2025-01-30 16:13:26 +01:00
FROM golang:1.22.11
2022-02-10 16:01:59 +01:00
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 \
2023-05-12 10:09:56 +02:00
&& go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \
&& golangci-lint custom \
&& mv ./custom-gcl /usr/local/bin/custom-gcl \
2023-02-01 00:49:43 +08:00
&& chmod -R 777 /tmp/build/ \
&& git config --global --add safe.directory /build
2022-02-10 16:01:59 +01:00
WORKDIR /build