diff --git a/Dockerfile b/Dockerfile index 44394aa..9454a5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ FROM --platform=$BUILDPLATFORM tonistiigi/xx AS xx # Define a builder stage that runs on the build platform. # Even if the target platform is different, instructions will run natively for # faster compilation. -FROM --platform=$BUILDPLATFORM debian:11-slim AS builder-build-platform +FROM --platform=$BUILDPLATFORM debian:bookworm-slim AS builder-build-platform SHELL ["/bin/bash", "-e", "-u", "-o", "pipefail", "-c"] @@ -63,6 +63,7 @@ RUN xx-apt-get install -y \ gcc \ g++ \ libc6-dev \ + pkg-config \ zlib1g-dev # Add dependencies. All should be pinned to specific versions, except @@ -224,7 +225,7 @@ RUN curl -fsSL https://ftp.ncbi.nlm.nih.gov/pub/datasets/command-line/v2/linux-$ # This is in place for Python programs which are not easy to install for a # different target platform¹. # ¹ https://github.com/pypa/pip/issues/5453 -FROM --platform=$TARGETPLATFORM python:3.10-slim-bullseye AS builder-target-platform +FROM --platform=$TARGETPLATFORM python:3.10-slim-bookworm AS builder-target-platform SHELL ["/bin/bash", "-e", "-u", "-o", "pipefail", "-c"] @@ -350,7 +351,7 @@ RUN pip3 install evofr # ———————————————————————————————————————————————————————————————————— # # Now build the final image. -FROM python:3.10-slim-bullseye AS final +FROM python:3.10-slim-bookworm AS final SHELL ["/bin/bash", "-e", "-u", "-o", "pipefail", "-c"] @@ -407,7 +408,7 @@ ARG TARGETPLATFORM # ¹ https://cvxopt.org/install/#building-and-installing-from-source RUN if [[ "$TARGETPLATFORM" == linux/arm64 ]]; then \ apt-get update && apt-get install -y --no-install-recommends \ - libopenblas-base \ + libopenblas0 \ ; \ fi