From c3f129a536544d761c7cd040f0a99e8769b21db3 Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Wed, 12 Jun 2024 15:32:01 -0700 Subject: [PATCH] Dockerfile fixes --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 172a5afd479d..d6c83e87a8e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -90,13 +90,14 @@ RUN curl -sSL https://install.python-poetry.org | python3 - RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1 RUN pip3 install --upgrade pip setuptools wheel +WORKDIR /opt/lightningd + RUN wget -q https://zlib.net/fossils/zlib-1.2.13.tar.gz -O zlib.tar.gz && \ wget -q https://www.sqlite.org/2019/sqlite-src-3290000.zip -O sqlite.zip -WORKDIR /opt/lightningd COPY . /tmp/lightning -RUN git clone --recursive /tmp/lightning . && \ - git checkout $(git --work-tree=/tmp/lightning --git-dir=/tmp/lightning/.git rev-parse HEAD) +RUN git clone --recursive /tmp/lightning . +RUN git checkout $(git --work-tree=/tmp/lightning --git-dir=/tmp/lightning/.git rev-parse HEAD) # Do not build python plugins (clnrest & wss-proxy) here, python doesn't support cross compilation. RUN sed -i '/^clnrest\|^wss-proxy/d' pyproject.toml && \