This is an automated email from the ASF dual-hosted git repository. kaxilnaik pushed a commit to branch v3-1-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 639a5e5a6a571e3c1693048e78601b3d049d9425 Author: Jarek Potiuk <[email protected]> AuthorDate: Thu Sep 11 14:46:44 2025 +0000 Fix Python version for PROD images (#55507) The AIRFLOW_PYTHON_VERSION ARG have not been propagated to env variable used to download Python packages. Fix #55503 (cherry picked from commit 69dac08dd1e68f1cafe47ce075988d45b55a6e28) --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 43d13166f11..3279158f945 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,7 @@ ARG AIRFLOW_USER_HOME_DIR=/home/airflow ARG AIRFLOW_VERSION="3.0.6" ARG BASE_IMAGE="debian:bookworm-slim" - +ARG AIRFLOW_PYTHON_VERSION="3.10.18" # You can swap comments between those two args to test pip from the main version # When you attempt to test if the version of `pip` from specified branch works for our builds @@ -1693,14 +1693,14 @@ ARG ADDITIONAL_DEV_APT_DEPS="" ARG DEV_APT_COMMAND="" ARG ADDITIONAL_DEV_APT_COMMAND="" ARG ADDITIONAL_DEV_APT_ENV="" +ARG AIRFLOW_PYTHON_VERSION ENV DEV_APT_DEPS=${DEV_APT_DEPS} \ ADDITIONAL_DEV_APT_DEPS=${ADDITIONAL_DEV_APT_DEPS} \ DEV_APT_COMMAND=${DEV_APT_COMMAND} \ ADDITIONAL_DEV_APT_COMMAND=${ADDITIONAL_DEV_APT_COMMAND} \ - ADDITIONAL_DEV_APT_ENV=${ADDITIONAL_DEV_APT_ENV} - -ENV AIRFLOW_PYTHON_VERSION=${AIRFLOW_PYTHON_VERSION} + ADDITIONAL_DEV_APT_ENV=${ADDITIONAL_DEV_APT_ENV} \ + AIRFLOW_PYTHON_VERSION=${AIRFLOW_PYTHON_VERSION} COPY --from=scripts install_os_dependencies.sh /scripts/docker/ RUN bash /scripts/docker/install_os_dependencies.sh dev
