forked from puckel/docker-airflow
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (16 loc) · 754 Bytes
/
Dockerfile
File metadata and controls
23 lines (16 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM apache/airflow:2.2.3-python3.9
LABEL maintainer="dataops-sre"
ARG AIRFLOW_VERSION=2.2.3
ARG PYTHON_VERSION=3.9
ARG AIRFLOW_DEPS=""
ARG PYTHON_DEPS=""
RUN pip install apache-airflow[crypto,celery,postgres,hive,jdbc,mysql,ssh,kubernetes,snowflake${AIRFLOW_DEPS:+,}${AIRFLOW_DEPS}]==${AIRFLOW_VERSION} \
# plyvel Required by airflow, unknown why not installed as a dependency
&& pip install plyvel==1.3.0 \
# pyarrow 5.0 required by snowflake but possibly incompatible by airflow
&& pip install pyarrow==5.0.0 \
&& if [ -n "${PYTHON_DEPS}" ]; then pip install ${PYTHON_DEPS}; fi
COPY script/entrypoint.sh /entrypoint.sh
COPY config/webserver_config.py $AIRFLOW_HOME/
COPY dags $AIRFLOW_HOME/dags
ENTRYPOINT ["/entrypoint.sh"]