2022-10-10 20:12:41 +02:00
|
|
|
FROM alpine:3.16
|
2022-01-04 16:39:46 +01:00
|
|
|
LABEL org.opencontainers.image.authors="Vincenzo Palazzo (@vincenzopalazzo) vincenzopalazzodev@gmail.com"
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
RUN apk update && \
|
2022-10-10 20:12:41 +02:00
|
|
|
apk add \
|
|
|
|
alpine-sdk \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
ca-certificates \
|
|
|
|
gettext \
|
|
|
|
git \
|
|
|
|
gmp-dev \
|
|
|
|
libsodium \
|
|
|
|
libtool \
|
|
|
|
net-tools \
|
|
|
|
py3-mako \
|
|
|
|
python3 \
|
|
|
|
sqlite-dev \
|
|
|
|
su-exec \
|
|
|
|
zlib-dev
|
|
|
|
|
2022-01-04 16:39:46 +01:00
|
|
|
|
|
|
|
RUN mkdir lightning
|
|
|
|
COPY . lightning
|
|
|
|
|
|
|
|
RUN cd lightning && \
|
|
|
|
git submodule update --init --recursive && \
|
|
|
|
./configure && \
|
|
|
|
make -j$(nproc) && \
|
|
|
|
make install
|
|
|
|
|
|
|
|
# TODO: review entry point here, to make this availale for the user
|
|
|
|
CMD ["lightningd", "--version"]
|