2022-01-04 16:39:46 +01:00
|
|
|
FROM alpine:3.14.3
|
|
|
|
LABEL org.opencontainers.image.authors="Vincenzo Palazzo (@vincenzopalazzo) vincenzopalazzodev@gmail.com"
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
RUN apk update && \
|
|
|
|
apk add ca-certificates alpine-sdk autoconf automake git libtool \
|
|
|
|
gmp-dev sqlite-dev python3 py3-mako net-tools zlib-dev libsodium gettext su-exec \
|
2022-09-06 06:57:55 +09:30
|
|
|
python3 py3-pip lowdown #&& \
|
2022-01-04 16:39:46 +01:00
|
|
|
#apk add --upgrade fortify-headers
|
|
|
|
|
|
|
|
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"]
|