-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 868 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (26 loc) · 868 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
26
27
28
29
30
31
FROM apache/airflow:3.0.1
# Switch to root user to install packages
USER root
# Install system dependencies including git and TA-Lib C library
RUN apt-get update && apt-get install -y \
build-essential \
git git-lfs \
curl \
wget \
&& wget -q http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz \
&& tar -xzf ta-lib-0.4.0-src.tar.gz \
&& cd ta-lib \
&& ./configure --build=aarch64-unknown-linux-gnu --prefix=/usr \
&& make \
&& make install \
&& cd .. \
&& rm -rf ta-lib ta-lib-0.4.0-src.tar.gz \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements.txt into the image
COPY requirements.txt /tmp/requirements.txt
# Switch back to airflow user
USER airflow
# Install Python packages
RUN pip install --upgrade pip
RUN pip install --no-cache-dir --quiet -r /tmp/requirements.txt