diff --git a/pipelines/full-build.yaml b/pipelines/full-build.yaml index e3cc02b..c362d62 100644 --- a/pipelines/full-build.yaml +++ b/pipelines/full-build.yaml @@ -72,7 +72,7 @@ stages: - task: UsePythonVersion@0 displayName: Set python version inputs: - versionSpec: 3.9 + versionSpec: 3.11 - script: | set -ex # Echo commands before they are run diff --git a/root-image/common.Dockerfile b/root-image/common.Dockerfile index bc464b8..f6bc9ab 100644 --- a/root-image/common.Dockerfile +++ b/root-image/common.Dockerfile @@ -1,12 +1,9 @@ -FROM python:3.9-slim-buster AS base +FROM python:3.11-slim-bookworm AS base # Upgrade dist packages RUN apt-get update && apt-get -yy upgrade && rm -rf /var/lib/apt/lists/* # Get required apt packages RUN apt-get update \ - && apt-get install -yy libffi6 libfuzzy2 libmagic1 \ + && apt-get install -yy libffi8 libfuzzy2 libmagic1 \ && rm -rf /var/lib/apt/lists/* - -# Patch Python 3.9 for FIPS - https://github.com/python/cpython/issues/95231 (Not necessary for Python 3.10+) -RUN sed -i -e 's/if e.errno == errno.EINVAL:/if e.errno in {errno.EINVAL, errno.EPERM, errno.ENOSYS}:/g' /usr/local/lib/python3.9/crypt.py