From 7fa005ce8c996fc479baf51fc77dc4886bcf14ea Mon Sep 17 00:00:00 2001 From: Jas Kalayan Date: Tue, 1 Dec 2026 14:12:48 +0000 Subject: [PATCH] build: update biosim-extractor to v 1.2.2 and use latest v in dockerfile --- docker/Dockerfile | 5 ++++- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index d87464a..fc024ae 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -44,7 +44,10 @@ COPY biosimdb_interface/ biosimdb_interface/ # Install application and its dependencies into the venv RUN pip install --upgrade pip RUN pip install --no-cache-dir setuptools==84.2.1 gunicorn==27.0.1 -RUN pip install --no-cache-dir . +# ensure latest version of biosim-extractor is installed in container +RUN pip install --no-cache-dir . && \ + TAG=$(python3 -c "import json,urllib.request as u; print(json.load(u.urlopen('https://api.github.com/repos/CCPBioSim/biosim-extractor/releases/latest'))['tag_name'])") && \ + pip install --no-cache-dir --upgrade "https://github.com/CCPBioSim/biosim-extractor/archive/refs/tags/${TAG}.tar.gz" # Stage 3: Runtime FROM ubuntu:26.04@sha256:6a06111c3b0a8600feadb270aec771dc239bf407b25625f93f44ab00e11f4d3c diff --git a/pyproject.toml b/pyproject.toml index 1ac2783..a265e81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ dependencies = [ "MDAnalysis==2.11.0", "python-dotenv==1.2.4", "gunicorn>=26,<28", - "biosim-extractor>=1.2.0,<2.0" + "biosim-extractor>=1.2.2,<2.0" ] [project.urls]