11FROM --platform=linux/amd64 ghcr.io/osgeo/gdal:ubuntu-small-3.6.4
22COPY --from=ghcr.io/astral-sh/uv:0.7.3 /uv /uvx /bin/
33
4- ARG AIRFLOW_VERSION=2.10.5
4+ ARG AIRFLOW_VERSION=3.0.2
55ARG UNAME=airflow
66ARG UID=50000
77ARG GID=0
@@ -15,7 +15,7 @@ WORKDIR /opt/airflow
1515RUN chown $UNAME:$GID /opt/airflow
1616
1717RUN apt-get -y update \
18- && apt-get install -y --no-install-recommends gcc libc6-dev libcurl4-openssl-dev libssl-dev python3.11 python3.11-venv python3.11-dev git \
18+ && apt-get install -y --no-install-recommends gcc libc6-dev libcurl4-openssl-dev libssl-dev git \
1919 && apt-get autoremove -yqq --purge \
2020 && apt-get clean \
2121 && rm -rf /var/lib/apt/lists/*
@@ -25,10 +25,11 @@ USER airflow
2525COPY --chown=airflow:airflow airflow_worker/requirements.txt "${AIRFLOW_HOME}/requirements.txt"
2626COPY --chown=airflow:airflow airflow_worker/requirements-in.txt "${AIRFLOW_HOME}/requirements-in.txt"
2727
28- RUN uv venv --python python3.11
28+ RUN uv python install 3.12
29+ RUN uv venv --python 3.12
2930RUN uv pip install virtualenv\
30- && uv pip install "apache-airflow[celery,amazon]==${AIRFLOW_VERSION}" -c "https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.11 .txt" \
31- && uv pip install --no-cache-dir -r requirements.txt -c "https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.11 .txt" \
31+ && uv pip install "apache-airflow[celery,amazon]==${AIRFLOW_VERSION}" -c "https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.12 .txt" \
32+ && uv pip install --no-cache-dir -r requirements.txt -c "https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.12 .txt" \
3233 && uv pip install --no-cache-dir -r requirements-in.txt apache-airflow==${AIRFLOW_VERSION}
3334
3435ENV PATH=".venv/bin:$PATH"
0 commit comments