diff --git a/Dockerfile b/Dockerfile index 693c1ab8ef4d5..482e2254376ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -483,6 +483,8 @@ WORKDIR ${AIRFLOW_HOME} EXPOSE 8080 +RUN usermod -g 0 airflow + USER ${AIRFLOW_UID} # Having the variable in final image allows to disable providers manager warnings when diff --git a/docs/helm-chart/manage-dags-files.rst b/docs/helm-chart/manage-dags-files.rst index 4a297467ed9b3..1f8ec8a574fb6 100644 --- a/docs/helm-chart/manage-dags-files.rst +++ b/docs/helm-chart/manage-dags-files.rst @@ -25,6 +25,21 @@ Bake DAGs in Docker image The recommended way to update your DAGs with this chart is to build a new docker image with the latest DAG code: +.. code-block:: bash + + docker build --tag "my-company/airflow:8a0da78" . -f - <