mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-04 03:03:51 +01:00
docker: Clean up the dockerfile to use poetry
This commit is contained in:
parent
81259bbd67
commit
0c4cc782df
1 changed files with 7 additions and 6 deletions
13
Dockerfile
13
Dockerfile
|
@ -62,13 +62,13 @@ RUN apt-get update -qq && \
|
||||||
libtool \
|
libtool \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
python3 \
|
python3 \
|
||||||
|
python3-dev \
|
||||||
python3-mako \
|
python3-mako \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
|
python3-venv \
|
||||||
python3-setuptools \
|
python3-setuptools \
|
||||||
wget
|
wget
|
||||||
|
|
||||||
RUN pip3 install -U setuptools mrkd mako
|
|
||||||
|
|
||||||
RUN wget -q https://zlib.net/zlib-1.2.11.tar.gz \
|
RUN wget -q https://zlib.net/zlib-1.2.11.tar.gz \
|
||||||
&& tar xvf zlib-1.2.11.tar.gz \
|
&& tar xvf zlib-1.2.11.tar.gz \
|
||||||
&& cd zlib-1.2.11 \
|
&& cd zlib-1.2.11 \
|
||||||
|
@ -95,12 +95,13 @@ WORKDIR /opt/lightningd
|
||||||
COPY . /tmp/lightning
|
COPY . /tmp/lightning
|
||||||
RUN git clone --recursive /tmp/lightning . && \
|
RUN git clone --recursive /tmp/lightning . && \
|
||||||
git checkout $(git --work-tree=/tmp/lightning --git-dir=/tmp/lightning/.git rev-parse HEAD)
|
git checkout $(git --work-tree=/tmp/lightning --git-dir=/tmp/lightning/.git rev-parse HEAD)
|
||||||
|
|
||||||
ARG DEVELOPER=0
|
ARG DEVELOPER=0
|
||||||
ENV PYTHON_VERSION=3
|
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/install-poetry.py | python3 - \
|
||||||
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
|
&& pip3 install -U pip \
|
||||||
RUN /root/.poetry/bin/poetry install
|
&& 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
|
RUN ./configure --prefix=/tmp/lightning_install --enable-static && make -j3 DEVELOPER=${DEVELOPER} && make install
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue