1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-02 09:21:53 +02:00
dockerfiles/airflow/Dockerfile

44 lines
1017 B
Docker
Raw Normal View History

2019-09-28 12:58:18 +02:00
#
# Dockerfile for airflow
#
FROM python:3.7-alpine
ENV AIRFLOW_VERSION=1.10.5
ENV AIRFLOW_EXTRAS=async,all_dbs,celery,crypto,devel_hadoop,jdbc,ldap,password,redis,s3,samba,slack,ssh,statsd
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 \
2019-10-17 10:05:51 +02:00
&& pip install cython gunicorn numpy psycopg2-binary \
2019-09-28 12:58:18 +02:00
&& pip install apache-airflow[${AIRFLOW_EXTRAS}]==${AIRFLOW_VERSION} \
&& pip install "websocket-client<0.55.0,>=0.35" \
&& 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"]