mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
17 lines
402 B
Docker
17 lines
402 B
Docker
FROM golang:1.18.2-buster
|
|
|
|
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
|