26 lines
439 B
Docker
Executable File
26 lines
439 B
Docker
Executable File
FROM apache/airflow:1.10.11
|
|
|
|
ENV AIRFLOW_HOME=/usr/local/airflow
|
|
|
|
USER root
|
|
|
|
RUN apt-get update && apt-get install -y python3-pip \
|
|
libcurl4-gnutls-dev \
|
|
librtmp-dev \
|
|
python3-dev \
|
|
libpq-dev
|
|
|
|
RUN python3 -m pip install PyGreSQL argcomplete pycurl
|
|
|
|
COPY ./config/* /
|
|
COPY ./dags ${AIRFLOW_HOME}/dags
|
|
|
|
RUN chown -R airflow: ${AIRFLOW_HOME}
|
|
|
|
EXPOSE 8080
|
|
|
|
USER airflow
|
|
|
|
WORKDIR ${AIRFLOW_HOME}
|
|
|
|
# ENTRYPOINT ["/entrypoint.sh"] |