You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "zaynkorai (via GitHub)" <gi...@apache.org> on 2025/06/12 15:40:41 UTC

[D] Building Dockerfile with Changes [airflow]

GitHub user zaynkorai created a discussion: Building Dockerfile with Changes

I'm building a Docker image using a Dockerfile located at the project root.

I've made some changes to the UI, but after rebuilding the image, those changes aren't being reflected in the container. I'm simply running a rebuild, and I'm not sure if I'm missing any additional steps.

Here’s the command I’m using:

`docker build --no-cache -t airflow3.2 .`
Are there any extra steps I should take to ensure the UI changes are picked up?

GitHub link: https://github.com/apache/airflow/discussions/51660

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org


Re: [D] Building Dockerfile with Changes [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
GitHub user potiuk edited a comment on the discussion: Building Dockerfile with Changes

https://github.com/apache/airflow/tree/main/contributing-docs again - look for UI /npm / react development.

GitHub link: https://github.com/apache/airflow/discussions/51660#discussioncomment-13451314

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org


Re: [D] Building Dockerfile with Changes [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
GitHub user potiuk added a comment to the discussion: Building Dockerfile with Changes

Generally the Dockerfle (and airflow) is not designed or supposed to work "out-of-the-box" for any changes you want to build locally -the dockerfile is used as part of "airflow" development workflow but you should follow contribution workflow and contributing docs https://github.com/apache/airflow/tree/main/contributing-docs if you want to build and run alrlow locally. 

There is a "CI" image that is built from sources (and contains a lot more things that are supposed to be used for Airflow development). There several other steps like asset compilation and then either preparing airflow `uv` workspace with multiple packages/distributions (Airflow consists of ~ 100 of python distributions overall).

The Dockerfile  (PROD)- by default installs airflow from released packages not from sources - even in CI of ours we build the packages locally first and then we use them to test PROD images - you can see more details on ways how you could build the image from packages https://airflow.apache.org/docs/docker-stack/build.html

If you want to do it yourself - you can probably reverse engineer the way how our CI builds and creates the images for testing - but the image was never meant to be used by users to install their own local modifications in an easy way.

GitHub link: https://github.com/apache/airflow/discussions/51660#discussioncomment-13451142

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org


Re: [D] Building Dockerfile with Changes [airflow]

Posted by "zaynkorai (via GitHub)" <gi...@apache.org>.
GitHub user zaynkorai edited a comment on the discussion: Building Dockerfile with Changes

Ok I have new error, how to resolve this, can someone point to documentation?

`Please make sure to build the frontend in static/ directory and restart the server`

GitHub link: https://github.com/apache/airflow/discussions/51660#discussioncomment-13451267

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org


Re: [D] Building Dockerfile with Changes [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
GitHub user potiuk added a comment to the discussion: Building Dockerfile with Changes

https://github.com/apache/airflow/tree/main/contributing-docs again - look for UI development.

GitHub link: https://github.com/apache/airflow/discussions/51660#discussioncomment-13451314

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org


Re: [D] Building Dockerfile with Changes [airflow]

Posted by "zaynkorai (via GitHub)" <gi...@apache.org>.
GitHub user zaynkorai added a comment to the discussion: Building Dockerfile with Changes

Ok I have new error, how to resolve this, can someone point to documentation?


"1770,13: COPY --from=airflow-build-image --chown=airflow:0 "${AIRFLOW_SOURCES_TO}" "${AIRFLOW_SOURCES_TO}""

GitHub link: https://github.com/apache/airflow/discussions/51660#discussioncomment-13451267

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org