From 61c66b29b5a181d249c83623b0486a704a1086c2 Mon Sep 17 00:00:00 2001 From: sverhoeven Date: Mon, 22 Jun 2026 15:03:09 +0200 Subject: [PATCH] Build bartender+haddock3 image --- deploy/Dockerfile.bartenderhaddock3 | 17 ++++++++++------- package.json | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/deploy/Dockerfile.bartenderhaddock3 b/deploy/Dockerfile.bartenderhaddock3 index cb0455b..5a386c9 100644 --- a/deploy/Dockerfile.bartenderhaddock3 +++ b/deploy/Dockerfile.bartenderhaddock3 @@ -1,15 +1,15 @@ # Dockerfile for bartender web service with haddock3, lightdock executables. -FROM python:3.9-slim-bookworm AS builder +FROM python:3.13-slim-bookworm AS builder LABEL org.opencontainers.image.source=https://github.com/i-VRESSE/haddock3-webapp/blob/main/deploy/Dockerfile.bartenderhaddock3 LABEL org.opencontainers.image.licenses=Apache-2.0 LABEL org.opencontainers.image.description="bartender web service with haddock3, lightdock executables. Image does contain cns executable, which is free for non-profit users, see https://github.com/haddocking/haddock3/blob/main/DISCLAIMER.md." ARG HADDOCK3_GHORG=haddocking ARG HADDOCK3_VERSION=main -ARG BARTENDER_VERSION=v0.5.3 +ARG BARTENDER_VERSION=py314 ARG LIGHTDOCK_VERSION=0.9.4 -ARG OPENMM_VERSION=8.2.0beta -ARG PDBFIXER_VERSION=1.9 +ARG OPENMM_VERSION=8.5.2 +ARG PDBFIXER_VERSION=v1.12 COPY --from=ghcr.io/ufoscout/docker-compose-wait:latest /wait /wait @@ -30,7 +30,10 @@ ENV PATH=/venv/bin:$PATH # lightdock ========================================================================================================== -RUN echo cachebust=1 && pip install lightdock==${LIGHTDOCK_VERSION} +# Lightdock is incompatible with python 3.13, +# lightdock/mathutil/cython/cutil.c:3930:27: error: too few arguments to function ‘_PyLong_AsByteArray’ +# so disable it +# RUN echo cachebust=1 && pip install lightdock==${LIGHTDOCK_VERSION} # openmm ============================================================================================================= @@ -55,7 +58,7 @@ RUN pip install . # haddock3 ============================================================================================================ WORKDIR /opt/haddock3 -RUN echo cachebust=16 && git clone --depth 1 -b ${HADDOCK3_VERSION} https://github.com/${HADDOCK3_GHORG}/haddock3.git . +RUN echo cachebust=17 && git clone --depth 1 -b ${HADDOCK3_VERSION} https://github.com/${HADDOCK3_GHORG}/haddock3.git . RUN pip install . # For restraints web service RUN pip install fastapi uvicorn @@ -64,7 +67,7 @@ WORKDIR / # final image ========================================================================================================= # TODO from ghcr.io/haddocking/haddock3:2024.10.0 -FROM python:3.9-slim-bookworm +FROM python:3.13-slim-bookworm # cns executable installed by haddock3 is linked against libquadmath on linux/amd64 and libgfortran5 on linux/arm64 ARG TARGETPLATFORM diff --git a/package.json b/package.json index a0601c0..6e20762 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "haddock3-webapp", "private": true, - "version": "0.3.14", + "version": "0.3.15", "sideEffects": false, "type": "module", "scripts": {