From fb91ea1896b67ee5eec5cbc284b5fee67a1f2315 Mon Sep 17 00:00:00 2001 From: dex-the-ai Date: Sat, 28 Nov 2026 02:34:12 +0000 Subject: [PATCH 1/2] chore(security): move Docker image off EOL python:3.9 bullseye base python:3.9-slim-bullseye is end-of-life (Python 3.9 EOL 2025-10, Debian 11 EOSL) and Trivy reports 7 CRITICAL / 164 HIGH OS CVEs in it. It also no longer builds: fastapi==0.162.0 requires Python >=3.10. Switch to python:3.13-slim (Debian 13) and copy hotel_search_index.json into the image so the app can create the hotel_search FTS index at startup. Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index eed3a36..159ded6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-slim-bullseye +FROM python:3.13-slim WORKDIR /code @@ -6,5 +6,6 @@ COPY requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt COPY ./app /code/app +COPY ./hotel_search_index.json /code/hotel_search_index.json CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] From 1729e702b1e902c37ddc3ed48f52a3de7f42e362 Mon Sep 17 00:00:00 2001 From: dex-the-ai Date: Sat, 28 Nov 2026 02:34:20 +0000 Subject: [PATCH 2/2] docs: README Python floor is 3.10 (fastapi 0.162 requires >=3.10) Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b481e63..928788c 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To run this prebuilt project, you will need: - [Couchbase Capella](https://www.couchbase.com/products/capella/) cluster with [travel-sample](https://docs.couchbase.com/python-sdk/current/ref/travel-app-data-model.html) bucket loaded. - To run this tutorial using a self managed Couchbase cluster, please refer to the [appendix](#running-self-managed-couchbase-cluster). -- [Python](https://www.python.org/downloads/) 3.9 or higher installed +- [Python](https://www.python.org/downloads/) 3.10 or higher installed - Ensure that the Python version is [compatible](https://docs.couchbase.com/python-sdk/current/project-docs/compatibility.html#python-version-compat) with the Couchbase SDK. - Loading Travel Sample Bucket If travel-sample is not loaded in your Capella cluster, you can load it by following the instructions for your Capella Cluster: