Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM python:3.8-slim

ARG AIRFLOW_VERSION=2.0.0
ARG AIRFLOW_VERSION=2.8.0
ARG PYTHON_VERSION=3.8
ARG AIRFLOW_HOME=/usr/local/airflow
ENV SLUGIFY_USES_TEXT_UNIDECODE=yes
ENV CONFIG_ROOT_DIR=/usr/local/airflow/dags/
Expand All @@ -19,6 +20,7 @@ RUN set -ex \
&& apt-get update -yqq \
&& apt-get upgrade -yqq \
&& apt-get install -yqq --no-install-recommends \
&& apt-get install curl -y \
$buildDeps \
freetds-bin \
build-essential \
Expand All @@ -34,7 +36,13 @@ RUN set -ex \
/usr/share/doc \
/usr/share/doc-base

RUN pip install apache-airflow[http]==${AIRFLOW_VERSION}
ARG CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-$AIRFLOW_VERSION/constraints-$PYTHON_VERSION.txt"
RUN curl -sSL $CONSTRAINT_URL -o /tmp/constraint.txt
# Workaround to remove PyYAML constraint that will work on both Linux and MacOS
RUN sed '/PyYAML==/d' /tmp/constraint.txt > /tmp/constraint.txt.tmp
RUN mv /tmp/constraint.txt.tmp /tmp/constraint.txt

RUN pip install apache-airflow[http]==${AIRFLOW_VERSION} --constraint /tmp/constraint.txt
ADD . /
RUN pip install -e .

Expand Down