diff --git a/Dockerfile b/Dockerfile index 915b947..513e487 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,11 @@ RUN pip install --user . FROM python:3.11-slim-bullseye AS build-image + +# Upgrade packages to the latest, pip as well. +RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade && apt-get clean && rm -rf /var/lib/apt/lists/* +RUN pip install --upgrade --no-cache-dir pip + COPY --from=compile-image /root/.local /root/.local # Make sure scripts in .local are usable: