From 0acdc911a5c9b65f50aa10977ac1db5a0f6ee37e Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 13 Oct 2022 14:35:16 +0200 Subject: [PATCH] docker: Build the alpine docker image from a clone This was causing some issues because it was picking up pre-built artefacts from the host machine. By cloning first we ensure it matches the latest commit and compiles from scratch. --- contrib/docker/Dockerfile.alpine | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/docker/Dockerfile.alpine b/contrib/docker/Dockerfile.alpine index 78e0f2352..68e5a8a78 100644 --- a/contrib/docker/Dockerfile.alpine +++ b/contrib/docker/Dockerfile.alpine @@ -27,12 +27,12 @@ RUN apk update && \ zlib-static RUN mkdir lightning -COPY . lightning +COPY . /source -RUN cd lightning && \ - git submodule update --init --recursive && \ - ./configure && \ - make -j$(nproc) && \ +RUN git clone /source /repo --recursive && \ + cd /repo && \ + ./configure --enable-static --prefix=/usr && \ + make -j $(nproc) && \ make install # TODO: review entry point here, to make this availale for the user