From 2eb685bd9e47e3f2dd8ac34da6f018ddd4bb6e29 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com>
Date: Tue, 2 Jul 2024 18:11:24 +0200
Subject: [PATCH] [UPD] use Python 3.12

---
 17.0.Dockerfile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/17.0.Dockerfile b/17.0.Dockerfile
index d22f13c..499632b 100644
--- a/17.0.Dockerfile
+++ b/17.0.Dockerfile
@@ -1,7 +1,7 @@
-FROM python:3.11-slim-bookworm AS builder
+FROM python:3.12-slim-bookworm AS builder
 RUN set -x; \
         apt-get update &&\
-        apt-get install -y --no-install-recommends build-essential git libfreetype-dev libldap2-dev libpq-dev libsasl2-dev libxml2-dev libxslt1-dev &&\
+        apt-get install -y --no-install-recommends build-essential curl git libldap2-dev libpq-dev libsasl2-dev &&\
         pip install wheel &&\
         pip wheel --wheel-dir=/svc/wheels -r https://raw.githubusercontent.com/oca/OCB/17.0/requirements.txt &&\
         # astor required by base_view_inheritance_extension
@@ -10,10 +10,10 @@ RUN set -x; \
         # python-stdnum>=1.18 required by l10n_fr_siret and l10n_fr_siret_lookup
         # PyYAML required by custom scripts for adding modules (https://sources.le-filament.com/lefilament/ansible-roles/docker_odoo/-/tree/master/templates)
         # zxcvbn required by password_security
-        pip wheel --wheel-dir=/svc/wheels astor git+https://github.com/OCA/openupgradelib.git@master phonenumbers python-stdnum>=1.18 PyYAML zxcvbn
+        pip wheel --wheel-dir=/svc/wheels astor git+https://github.com/OCA/openupgradelib.git@master phonenumbers==8.13.40 python-stdnum==1.20 PyYAML==6.0.1 zxcvbn==4.4.28
 
 
-FROM python:3.11-slim-bookworm AS final
+FROM python:3.12-slim-bookworm AS final
 ENV LANG=C.UTF-8 \
     LC_ALL=C.UTF-8 \
     PGDATABASE=odoo
-- 
GitLab