lnd/tools/Dockerfile

18 lines
436 B
Docker
Raw Normal View History

FROM golang:1.21
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 \
2023-01-31 17:49:43 +01:00
&& chmod -R 777 /tmp/build/ \
&& git config --global --add safe.directory /build
2022-02-10 16:01:59 +01:00
WORKDIR /build