mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-24 14:50:40 +01:00
Since we now have a scripted check that makes sure the Golang version is synced throughout all files, it is important that the main version in the Makefile is changed, then all other versions can be detected by that script.
30 lines
933 B
Docker
30 lines
933 B
Docker
# If you change this please also update GO_VERSION in Makefile (then run
|
|
# `make lint` to see where else it needs to be updated as well).
|
|
FROM golang:1.22.6-bookworm
|
|
|
|
MAINTAINER Olaoluwa Osuntokun <laolu@lightning.engineering>
|
|
|
|
# Golang build related environment variables that are static and used for all
|
|
# architectures/OSes.
|
|
ENV GODEBUG netdns=cgo
|
|
ENV GO111MODULE=auto
|
|
ENV CGO_ENABLED=0
|
|
|
|
# Set up cache directories. Those will be mounted from the host system to speed
|
|
# up builds. If go isn't installed on the host system, those will fall back to
|
|
# temp directories during the build (see make/release_flags.mk).
|
|
ENV GOCACHE=/tmp/build/.cache
|
|
ENV GOMODCACHE=/tmp/build/.modcache
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
git \
|
|
make \
|
|
tar \
|
|
zip \
|
|
bash \
|
|
&& mkdir -p /tmp/build/lnd \
|
|
&& mkdir -p /tmp/build/.cache \
|
|
&& mkdir -p /tmp/build/.modcache \
|
|
&& chmod -R 777 /tmp/build/
|
|
|
|
WORKDIR /tmp/build/lnd
|