mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
09d21345e1
Bump all build go versions to v1.21.0 Bump the minimum build package version to v1.19.0 Debian "buster" is not longer supported. Security updates have been discontinued since June 30th 2022. We will build using the latest version, "bookworm".
18 lines
436 B
Docker
18 lines
436 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
|
|
|
|
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/ \
|
|
&& git config --global --add safe.directory /build
|
|
|
|
WORKDIR /build
|