-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (27 loc) · 1.18 KB
/
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
FROM apache/airflow:2.2.4
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git \
ca-certificates \
curl \
gnupg \
lsb-release \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \
&& echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt-get update \
&& apt-get install -y --no-install-recommends docker-ce-cli \
&& apt-get install -y --no-install-recommends cwltool \
&& apt-get autoremove -yqq --purge \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /home/airflow/.cache/cwltool && chown -R 1000 /home/airflow/.cache/cwltool
USER airflow
COPY webserver_config.py /opt/airflow/
COPY user_auth.py /home/airflow/.local/lib/python3.7/site-packages/airflow/api/auth/backend
RUN pip install airflow-code-editor black
RUN pip install 'apache-airflow[amazon]'
RUN pip install 'apache-airflow[sendgrid]'
RUN pip install jupyter-repo2docker