mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
f40b6da457
Switching to poetry, and deprecating python 3.6, made things a bit more tricky. Sadly we'll not be able to build jammy, as its support is missing in the tag tarball, but it'll be there for the next release.
48 lines
1.0 KiB
Docker
48 lines
1.0 KiB
Docker
FROM jammy
|
|
|
|
ENV TZ=UTC
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
RUN sed -i '/updates/d' /etc/apt/sources.list && \
|
|
sed -i '/security/d' /etc/apt/sources.list
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
autoconf \
|
|
build-essential \
|
|
ca-certificates \
|
|
file \
|
|
gettext \
|
|
git \
|
|
libgmp-dev \
|
|
libpq-dev \
|
|
libsodium23 \
|
|
libtool \
|
|
m4 \
|
|
python3-setuptools \
|
|
sudo \
|
|
unzip \
|
|
wget \
|
|
zip
|
|
|
|
RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp/get-pip.py \
|
|
&& rm /tmp/get-pip.py \
|
|
&& pip install poetry
|
|
|
|
RUN mkdir /build
|
|
WORKDIR /build
|
|
|
|
CMD git clone /repo /build \
|
|
&& poetry export -o requirements.txt --without-hashes \
|
|
&& pip install -r requirements.txt \
|
|
&& tools/build-release.sh zipfile \
|
|
&& mkdir -p /repro \
|
|
&& cd /repro \
|
|
&& unzip /build/release/*.zip \
|
|
&& cd clightning* \
|
|
&& tools/repro-build.sh \
|
|
&& mkdir -p /repo/release \
|
|
&& cp *.xz /build/release/* /repo/release/ \
|
|
&& cd /repo/release/ \
|
|
&& sha256sum *
|