From d9f72af4a7cfc7b601a54ac003bcda051482161c Mon Sep 17 00:00:00 2001 From: Nick Greenfield Date: Fri, 9 Oct 2026 11:51:59 -0400 Subject: [PATCH] Move v0.19.4 to Debian bookworm Notebooks are moving to E2B sandboxes, and E2B installs systemd, openssh and a few other packages into every template image with apt. bullseye's security packages have been pruned from deb.debian.org, so that install now 404s and the v0.19.x images can no longer be built as E2B templates. The v1 line already moved to bookworm (#56); this does the same for v0.19.4: - python:3.13-slim-bullseye -> python:3.13-slim-bookworm - libffi7 -> libffi8 - drop python-dev, which bookworm doesn't have (the python image ships headers) - pin setuptools<81: jupyter_contrib_nbextensions imports pkg_resources, which setuptools 81 removed, and the slim image no longer ships setuptools (as in v1.1.0) Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 5 ++--- requirements.txt | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5da9dba..2b0f64b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ # Extended from github.com/jupyter/docker-stacks # See also http://blog.dscpl.com.au/2016/01/roundup-of-docker-issues-when-hosting.html -FROM python:3.13-slim-bullseye +FROM python:3.13-slim-bookworm LABEL maintainer="Nick Greenfield " @@ -25,8 +25,7 @@ RUN apt-get update && apt-get install -yq --no-install-recommends \ git \ gnupg \ locales \ - python-dev \ - libffi7 \ + libffi8 \ libpango-1.0-0 \ libpangoft2-1.0-0 \ libcairo2 \ diff --git a/requirements.txt b/requirements.txt index d47f925..f254bc0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,6 @@ +# jupyter_contrib_nbextensions imports pkg_resources, which setuptools removed +# in v81; the python:3.13-slim base image no longer ships setuptools at all. +setuptools<81 awscli biopython ipywidgets