mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
As usual, we keep with the last two Go versions, which means the last year of Go release (they release every 6 months or so). This change means we can now use the type params (generics) in the project!
16 lines
400 B
Docker
16 lines
400 B
Docker
FROM golang:1.19-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
|