This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new b8c6a3f0181 ADO-513 Remove cache from image (#65134)
b8c6a3f0181 is described below
commit b8c6a3f01814181b93f7670e36289fe9779014c2
Author: Petr Fedchenkov <[email protected]>
AuthorDate: Thu Apr 23 03:51:18 2026 +0300
ADO-513 Remove cache from image (#65134)
Co-authored-by: Petr Fedchenkov <[email protected]>
---
Dockerfile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Dockerfile b/Dockerfile
index d1b02e569c4..a4ec61625af 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2056,6 +2056,11 @@ RUN
--mount=type=cache,id=prod-$TARGETARCH-$DEPENDENCY_CACHE_EPOCH,target=/tmp/.
RUN
--mount=type=cache,id=prod-$TARGETARCH-$DEPENDENCY_CACHE_EPOCH,target=/tmp/.cache/,uid=${AIRFLOW_UID}
\
if [[ -f /docker-context-files/requirements.txt ]]; then \
pip install -r /docker-context-files/requirements.txt; \
+ find "${AIRFLOW_USER_HOME_DIR}/.local/" -name '*.pyc' -print0 | xargs
-0 rm -f || true ; \
+ find "${AIRFLOW_USER_HOME_DIR}/.local/" -type d -name '__pycache__'
-print0 | xargs -0 rm -rf || true ; \
+ # make sure that all directories and files in .local are also group
accessible
+ find "${AIRFLOW_USER_HOME_DIR}/.local" -executable ! -type l -print0 |
xargs --null chmod g+x; \
+ find "${AIRFLOW_USER_HOME_DIR}/.local" ! -type l -print0 | xargs
--null chmod g+rw; \
fi
##############################################################################################
@@ -2152,6 +2157,8 @@ RUN bash /scripts/docker/install_mysql.sh prod \
&& mkdir -pv "${AIRFLOW_HOME}/logs" \
&& chown -R airflow:0 "${AIRFLOW_USER_HOME_DIR}" "${AIRFLOW_HOME}" \
&& chmod -R g+rw "${AIRFLOW_USER_HOME_DIR}" "${AIRFLOW_HOME}" \
+ && find "${AIRFLOW_USER_HOME_DIR}" -name '*.pyc' -print0 | xargs -0 rm -f
|| true \
+ && find "${AIRFLOW_USER_HOME_DIR}" -type d -name '__pycache__' -print0 |
xargs -0 rm -rf || true \
&& find "${AIRFLOW_HOME}" -executable ! -type l -print0 | xargs --null
chmod g+x \
&& find "${AIRFLOW_USER_HOME_DIR}" -executable ! -type l -print0 | xargs
--null chmod g+x