1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-30 09:16:58 +02:00
dockerfiles/airflow/Dockerfile

43 lines
979 B
Docker
Raw Normal View History

2019-09-28 12:58:18 +02:00
#
# Dockerfile for airflow
#
2020-08-17 09:45:42 +02:00
FROM python:3.8-alpine
2019-09-28 12:58:18 +02:00
2020-08-17 09:45:42 +02:00
ENV AIRFLOW_VERSION=1.10.11
ENV AIRFLOW_EXTRAS=async,all_dbs,celery,crypto,devel_hadoop,jdbc,ldap,password,redis,s3,samba,ssh,statsd
2019-09-28 12:58:18 +02:00
ENV AIRFLOW_HOME=/opt/airflow
2019-10-17 09:07:39 +02:00
ENV AIRFLOW_CONFIG=/opt/airflow/airflow.cfg
2019-09-28 12:58:18 +02:00
RUN set -xe \
&& apk add --no-cache \
build-base \
cyrus-sasl-dev \
freetds \
freetds-dev \
krb5-dev \
libffi-dev \
mariadb-dev \
postgresql-dev \
python3-dev \
&& pip install --no-cache-dir cython numpy psycopg2-binary \
&& pip install --no-cache-dir apache-airflow[${AIRFLOW_EXTRAS}]==${AIRFLOW_VERSION} \
2019-09-28 12:58:18 +02:00
&& apk del \
build-base \
cyrus-sasl-dev \
freetds-dev \
krb5-dev \
libffi-dev \
mariadb-dev \
postgresql-dev \
python3-dev \
&& rm -rf /root/.cache/pip
WORKDIR ${AIRFLOW_HOME}
VOLUME ${AIRFLOW_HOME}
EXPOSE 8080
ENTRYPOINT ["airflow"]
CMD ["--help"]