2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-09 19:10:47 +00:00
loop/tools/Dockerfile

16 lines
409 B
Docker
Raw Normal View History

2023-09-28 11:16:01 +00:00
FROM golang:1.21
2022-05-20 06:56:21 +00:00
RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache
ENV GOMODCACHE=/tmp/build/.modcache
2023-09-28 11:16:01 +00:00
ENV GOFLAGS="-buildvcs=false"
2022-05-20 06:56:21 +00:00
COPY . /tmp/tools
RUN cd /tmp \
&& mkdir -p /tmp/build/.cache \
&& mkdir -p /tmp/build/.modcache \
&& cd /tmp/tools \
2023-09-28 11:16:01 +00:00
&& go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \
&& chmod -R 777 /tmp/build/
2022-05-20 06:56:21 +00:00
WORKDIR /build