1
0
Fork 0
mirror of https://github.com/lightningnetwork/lnd.git synced 2025-03-18 12:51:11 +01:00
lnd/tools/Dockerfile

17 lines
400 B
Text
Raw Normal View History

FROM golang:1.19-buster
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 \
&& go install -trimpath -tags=tools github.com/golangci/golangci-lint/cmd/golangci-lint \
&& chmod -R 777 /tmp/build/
WORKDIR /build