-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 688 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use the official Airflow image as a base
FROM apache/airflow:2.10.3
# Switch to root user to have permissions to install packages
USER root
# Install required build tools and libraries
RUN apt-get update && apt-get install -y \
build-essential \
python3-dev \
gcc \
libffi-dev \
libpq-dev \
libsasl2-dev \
libldap2-dev \
&& apt-get clean
# Copy the requirements.txt to the container
ADD requirements.txt .
# Switch back to the airflow user before running pip install
USER ${AIRFLOW_UID:-50000}
# Install the necessary Python packages, including Airflow dependencies and additional packages
RUN pip install apache-airflow==2.10.3 -r requirements.txt