mirror of
https://github.com/lightninglabs/loop
synced 2024-11-04 06:00:21 +00:00
16 lines
409 B
Docker
16 lines
409 B
Docker
FROM golang:1.21
|
|
|
|
RUN apt-get update && apt-get install -y git
|
|
ENV GOCACHE=/tmp/build/.cache
|
|
ENV GOMODCACHE=/tmp/build/.modcache
|
|
ENV GOFLAGS="-buildvcs=false"
|
|
|
|
COPY . /tmp/tools
|
|
|
|
RUN cd /tmp \
|
|
&& mkdir -p /tmp/build/.cache \
|
|
&& mkdir -p /tmp/build/.modcache \
|
|
&& cd /tmp/tools \
|
|
&& go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \
|
|
&& chmod -R 777 /tmp/build/
|
|
WORKDIR /build |