-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathDockerfile
30 lines (25 loc) · 884 Bytes
/
Dockerfile
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
FROM python:3.8-slim-buster
RUN apt update
# Install Airflow pre-requisites: https://airflow.apache.org/docs/apache-airflow/2.0.0/installation.html#getting-airflow
RUN apt install build-essential -y
# Install Airflow system dependencies: https://airflow.apache.org/docs/apache-airflow/stable/installation.html#system-dependencies
# NOTE: we have changed krb5-user to libkrb5-dev for a non-interactive installation
RUN apt-get install -y --no-install-recommends \
freetds-bin \
ldap-utils \
libffi6 \
libkrb5-dev \
libsasl2-2 \
libsasl2-modules \
libssl1.1 \
locales \
lsb-release \
sasl2-bin \
sqlite3 \
unixodbc
# Install Airflow and any additonal dependencies
WORKDIR /root
COPY Makefile /root/Makefile
COPY airflow.requirements.txt /root/airflow.requirements.txt
RUN make internal-install-airflow
RUN make internal-install-deps