mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-02 12:44:26 +01:00
docker: Clean up the dockerfile to use poetry
This commit is contained in:
committed by
Rusty Russell
parent
81259bbd67
commit
0c4cc782df
13
Dockerfile
13
Dockerfile
@@ -62,13 +62,13 @@ RUN apt-get update -qq && \
|
||||
libtool \
|
||||
libffi-dev \
|
||||
python3 \
|
||||
python3-dev \
|
||||
python3-mako \
|
||||
python3-pip \
|
||||
python3-venv \
|
||||
python3-setuptools \
|
||||
wget
|
||||
|
||||
RUN pip3 install -U setuptools mrkd mako
|
||||
|
||||
RUN wget -q https://zlib.net/zlib-1.2.11.tar.gz \
|
||||
&& tar xvf zlib-1.2.11.tar.gz \
|
||||
&& cd zlib-1.2.11 \
|
||||
@@ -95,12 +95,13 @@ 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)
|
||||
|
||||
ARG DEVELOPER=0
|
||||
ENV PYTHON_VERSION=3
|
||||
RUN apt-get install -y --no-install-recommends python3-dev
|
||||
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
|
||||
RUN /root/.poetry/bin/poetry install
|
||||
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python3 - \
|
||||
&& pip3 install -U pip \
|
||||
&& pip3 install -U wheel \
|
||||
&& /root/.local/bin/poetry config virtualenvs.create false \
|
||||
&& /root/.local/bin/poetry install
|
||||
|
||||
RUN ./configure --prefix=/tmp/lightning_install --enable-static && make -j3 DEVELOPER=${DEVELOPER} && make install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user