From 4cbed58c7641cdec470eb92fc02697ad8d87f59b Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Mon, 27 Jan 2025 18:05:27 +0800 Subject: [PATCH] Update Dockerfile Python base image to mitigate some security issues --- docker/Dockerfile | 4 ++-- docker/arm.Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 7e62b79..304d305 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11.9-slim-bullseye AS builder +FROM python:3.11.11-slim-bullseye AS builder WORKDIR /app @@ -20,7 +20,7 @@ RUN ./venv/bin/pip install Babel==2.12.1 && ./venv/bin/python scripts/compile_lo && ./venv/bin/pip install . \ && ./venv/bin/pip cache purge -FROM python:3.11.9-slim-bullseye +FROM python:3.11.11-slim-bullseye ARG with_models=false ARG models="" diff --git a/docker/arm.Dockerfile b/docker/arm.Dockerfile index a4d3c50..8788f65 100644 --- a/docker/arm.Dockerfile +++ b/docker/arm.Dockerfile @@ -1,4 +1,4 @@ -FROM arm64v8/python:3.11.9-slim-bullseye as builder +FROM arm64v8/python:3.11.11-slim-bullseye as builder WORKDIR /app @@ -20,7 +20,7 @@ RUN ./venv/bin/pip install Babel==2.12.1 && ./venv/bin/python scripts/compile_lo && ./venv/bin/pip install . \ && ./venv/bin/pip cache purge -FROM arm64v8/python:3.11.9-slim-bullseye +FROM arm64v8/python:3.11.11-slim-bullseye ARG with_models=false ARG models=""