You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
980 B
34 lines
980 B
# If you change this value, please change it in the following files as well: |
|
# /.travis.yml |
|
# /Dockerfile |
|
# /dev.Dockerfile |
|
# /.github/workflows/main.yml |
|
# /.github/workflows/release.yml |
|
FROM golang:1.16.3-buster |
|
|
|
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
|
|
|