lightning-terminal/tools/Dockerfile

20 lines
600 B
Text
Raw Normal View History

2025-10-24 16:48:53 -04:00
FROM golang:1.24.9-bookworm@sha256:e400aebe4e96e1d52b510fb7a82c417d9377f595f0160eb1bd979d441711d20c
2022-10-15 09:04:06 +02:00
RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache
ENV GOMODCACHE=/tmp/build/.modcache
2023-03-29 20:34:34 +02:00
ENV GOFLAGS="-buildvcs=false"
2022-10-15 09:04:06 +02:00
COPY . /tmp/tools
RUN cd /tmp \
&& mkdir -p /tmp/build/.cache \
&& mkdir -p /tmp/build/.modcache \
&& cd /tmp/tools \
&& CGO_ENABLED=0 go install -trimpath github.com/golangci/golangci-lint/cmd/golangci-lint \
&& CGO_ENABLED=0 golangci-lint custom \
&& mv ./custom-gcl /usr/local/bin/custom-gcl \
2023-03-29 20:34:34 +02:00
&& chmod -R 777 /tmp/build/
2022-10-15 09:04:06 +02:00
WORKDIR /build