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.
This commit is contained in:
Christian Decker 2022-10-13 14:35:16 +02:00
parent 1f5e579f1b
commit 0acdc911a5

View file

@ -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