From a17c60f76371535199b9b825e095e8d58e254645 Mon Sep 17 00:00:00 2001 From: Pouyanpi <13303554+Pouyanpi@users.noreply.github.com> Date: Fri, 28 Nov 2025 13:19:19 +0100 Subject: [PATCH] chore(docker): upgrade to Python 3.12-slim base image Switch base image from python:3.10 to python:3.12-slim for improved performance and smaller image size. Use --no-install-recommends for apt package installation and clean up apt cache to reduce final image size. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index aff152e3a..498f70b8f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,10 +15,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM python:3.10 +FROM python:3.12-slim -# Install git and gcc/g++ for annoy -RUN apt-get update && apt-get install -y git gcc g++ +RUN apt-get update && apt-get install -y --no-install-recommends git gcc g++ \ + && rm -rf /var/lib/apt/lists/* # Set POETRY_VERSION environment variable ENV POETRY_VERSION=1.8.2