diff --git a/Dockerfile b/Dockerfile index a78b2bf..acd6877 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM apache/airflow:2.6.3 +FROM apache/airflow:2.8.3-python3.11 USER root @@ -7,3 +7,5 @@ RUN mkdir -p ${AIRFLOW_HOME} && chown -R airflow: ${AIRFLOW_HOME} USER airflow RUN airflow db init +COPY requirements.txt ./requirements.txt +RUN pip install --no-cache-dir --upgrade --user -r requirements.txt diff --git a/docker-compose.yaml b/docker-compose.yaml index 703126f..83bd999 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -44,13 +44,13 @@ # # Feel free to modify this file to suit your needs. --- -version: '3.8' +version: '3.11' x-airflow-common: &airflow-common # In order to add custom dependencies or upgrade provider packages you can use your extended image. # Comment the image line, place your Dockerfile in the directory where you placed the docker-compose.yaml # and uncomment the "build" line below, Then run `docker-compose build` to build the images. - image: ${AIRFLOW_IMAGE_NAME:-apache/airflow:2.6.3} + image: ${AIRFLOW_IMAGE_NAME:-apache/airflow:2.8.3} build: context: . dockerfile: Dockerfile diff --git a/requirements.txt b/requirements.txt index 8c21738..2ed6c88 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -apache-airflow==2.6.3 +apache-airflow==2.8.3 pytest