lightning-terminal/tools/Dockerfile

20 lines
601 B
Text
Raw Normal View History

2026-07-10 19:24:26 -03:00
FROM golang:1.25.11-bookworm@sha256:b96f24a8d7d010ea0acb9c3ba99064740f02b6b984612b28bd3c9c5ab9453e38
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