# llm-rag x airflow: builder image for the DAG bundle. The DAG file itself
# runs inside the Airflow scheduler/worker process; this Dockerfile is
# provided for teams that ship DAGs as OCI images (Composer 2, MWAA custom
# images).

FROM apache/airflow:2.10.4-python3.11

USER airflow
COPY --chown=airflow:0 requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

# DAGs live under $AIRFLOW_HOME/dags in the runtime image.
COPY --chown=airflow:0 . /opt/airflow/dags/llm_rag/
