Update base image for Airflow to support Python 3.10
[osm/devops.git] / docker / Airflow / Dockerfile
index 804cc7f..bf72444 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 #######################################################################################
 
-FROM apache/airflow:2.5.2-python3.8
+FROM apache/airflow:2.5.2-python3.10
 USER root
 RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
     DEBIAN_FRONTEND=noninteractive apt-get --yes install \
@@ -33,10 +33,10 @@ RUN mkdir /tmp/osm
 RUN dpkg-deb -x osm_common.deb /tmp/osm
 RUN dpkg-deb -x osm_ngsa.deb /tmp/osm
 
-RUN mv /tmp/osm/usr/lib/python3/dist-packages/* /home/airflow/.local/lib/python3.8/site-packages/
+RUN mv /tmp/osm/usr/lib/python3/dist-packages/* /home/airflow/.local/lib/python3.10/site-packages/
 RUN rm -rf /tmp/osm
 
 RUN pip3 install \
-    -r /home/airflow/.local/lib/python3.8/site-packages/osm_common/requirements.txt \
-    -r /home/airflow/.local/lib/python3.8/site-packages/osm_ngsa/requirements.txt
+    -r /home/airflow/.local/lib/python3.10/site-packages/osm_common/requirements.txt \
+    -r /home/airflow/.local/lib/python3.10/site-packages/osm_ngsa/requirements.txt