# Airflow worker image with the MCA SDK and forecast DAG bundled. Extend the
# official apache/airflow image so the DAG loads through the standard
# scheduler/worker discovery path (/opt/airflow/dags).

FROM apache/airflow:2.9.3-python3.11

USER root
WORKDIR /opt/airflow

COPY requirements.txt /requirements.txt
RUN pip install --no-cache-dir -r /requirements.txt

# DAG file drops into the standard dags folder so the scheduler discovers it.
COPY dag.py /opt/airflow/dags/ts_forecast_dag.py
COPY sample_series.csv /opt/airflow/dags/sample_series.csv

USER airflow
