Skip to content

Commit

Permalink
build: Upgrade Docker base images to Debian Bookworm.
Browse files Browse the repository at this point in the history
Undertaken to upgrade QEMU to 7.2. Also upgrades Python to 3.11 implicitly.

Changelog-Changed: Released Docker images are now based on Debian Bookworm
  • Loading branch information
s373nZ committed Dec 11, 2024
1 parent 21dd4a8 commit cfb3e44
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# * final: Creates the runtime image.

ARG DEFAULT_TARGETPLATFORM="linux/amd64"
ARG BASE_DISTRO="debian:bullseye-slim"
ARG BASE_DISTRO="debian:bookworm-slim"

FROM --platform=$BUILDPLATFORM ${BASE_DISTRO} AS base-downloader
RUN set -ex \
Expand Down Expand Up @@ -76,7 +76,7 @@ RUN apt-get update -qq && \
pkg-config \
libssl-dev \
protobuf-compiler \
python3.9 \
python3 \
python3-dev \
python3-mako \
python3-pip \
Expand All @@ -93,7 +93,6 @@ ENV PATH="/root/.local/bin:$PATH"
ENV PYTHON_VERSION=3 \
PIP_BREAK_SYSTEM_PACKAGES=1
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

RUN wget -q https://zlib.net/fossils/zlib-1.2.13.tar.gz -O zlib.tar.gz && \
Expand Down Expand Up @@ -255,7 +254,7 @@ RUN apt-get update -qq && \
build-essential \
libffi-dev \
libssl-dev \
python3.9 \
python3 \
python3-dev \
python3-pip && \
apt-get clean && \
Expand Down Expand Up @@ -312,7 +311,7 @@ RUN --mount=type=bind,from=builder,source=/var/libpq,target=/var/libpq,rw \
ldconfig /usr/local/pgsql/lib

COPY --from=builder /tmp/lightning_install/ /usr/local/
COPY --from=builder-python /usr/local/lib/python3.9/dist-packages/ /usr/local/lib/python3.9/dist-packages/
COPY --from=builder-python /usr/local/lib/python3.11/dist-packages/ /usr/local/lib/python3.11/dist-packages/
COPY --from=downloader /opt/bitcoin/bin /usr/bin
COPY --from=downloader /opt/litecoin/bin /usr/bin
COPY tools/docker-entrypoint.sh entrypoint.sh
Expand Down

0 comments on commit cfb3e44

Please sign in to comment.