mirror of https://github.com/lightninglabs/loop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
401 B
Docker
16 lines
401 B
Docker
2 years ago
|
FROM golang:1.18.0-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
|