-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
31 lines (25 loc) · 921 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
31
FROM continuumio/miniconda3:4.5.12
ENV SLUGIFY_USES_TEXT_UNIDECODE=yes \
PYTHONDONTWRITEBYTECODE=1 \
AIRFLOW__CORE__LOAD_EXAMPLES=False \
AIRFLOW__WEBSERVER__EXPOSE_CONFIG=True
RUN mkdir -p /root/airflow_rocket/src
COPY setup.py /root/airflow_rocket
COPY entrypoint.sh /root/airflow_rocket
COPY src /root/airflow_rocket/src
COPY dags /root/airflow/dags
# hadolint ignore=DL3008,DL3013
RUN apt-get update && \
apt-get install -y gcc g++ --no-install-recommends && \
conda install --yes python=3.6 -n base && \
pip install /root/airflow_rocket && \
airflow initdb && \
apt-get remove -y --purge gcc g++ && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
# ENV AIRFLOW__SCHEDULER__MAX_THREADS=1
# ENV AIRFLOW__WEBSERVER__WORKER_REFRESH_INTERVAL=0
# ENV AIRFLOW__WEBSERVER__WORKERS=1
EXPOSE 8080
ENTRYPOINT ["/bin/bash", "/root/airflow_rocket/entrypoint.sh"]