Skip to content

Commit 771dda4

Browse files
committed
Modify dockerfile to support Apple silicon builds
1 parent 19277f7 commit 771dda4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

airflow_worker/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ WORKDIR /opt/airflow
1515
RUN chown $UNAME:$GID /opt/airflow
1616

1717
RUN apt-get -y update \
18-
&& apt-get install -y --no-install-recommends gcc libc6-dev libcurl4-openssl-dev libssl-dev \
18+
&& apt-get install -y --no-install-recommends gcc libc6-dev libcurl4-openssl-dev libssl-dev python3.11 python3.11-venv python3.11-dev \
1919
&& apt-get autoremove -yqq --purge \
2020
&& apt-get clean \
2121
&& rm -rf /var/lib/apt/lists/*
@@ -25,9 +25,7 @@ USER airflow
2525
COPY --chown=airflow:airflow airflow_worker/requirements.txt "${AIRFLOW_HOME}/requirements.txt"
2626
COPY --chown=airflow:airflow airflow_worker/requirements-in.txt "${AIRFLOW_HOME}/requirements-in.txt"
2727

28-
RUN uv python install 3.11
29-
RUN uv venv
30-
28+
RUN uv venv --python python3.11
3129
RUN uv pip install "apache-airflow[celery,amazon]==${AIRFLOW_VERSION}" -c "https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.11.txt"\
3230
&& uv pip install --no-cache-dir -r requirements.txt -c "https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-3.11.txt"\
3331
&& uv pip install --no-cache-dir -r requirements-in.txt apache-airflow==${AIRFLOW_VERSION}

0 commit comments

Comments
 (0)