Moved apt-get install further up in Dockerfile
This commit is contained in:
parent
e94bec5079
commit
c68b851807
16
Dockerfile
16
Dockerfile
@ -1,5 +1,13 @@
|
||||
FROM apache/airflow:2.10.4-python3.12
|
||||
|
||||
USER root
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-instal-recommends \
|
||||
vim gcc python3-devel krb5-devel \
|
||||
&& apt-get autoremove -yqq -purge \
|
||||
&& apt-get clean
|
||||
USER airflow
|
||||
|
||||
ARG AIRFLOW_VERSION="2.10.4"
|
||||
ARG AIRFLOW_EXTRAS="celery,microsoft.mssql,jdbc,ssh,async,docker,oracle,ldap,sftp,postgres,redis"
|
||||
ARG AIRFLOW_HOME_DIR=/opt/airflow
|
||||
@ -11,16 +19,8 @@ ENV AIRFLOW_HOME_DIR=${AIRFLOW_HOME_DIR}
|
||||
ENV AIRFLOW_USER_HOME_DIR=${AIRFLOW_USER_HOME_DIR}
|
||||
ENV AIRFLOW_HOME=${AIRFLOW_HOME_DIR}
|
||||
|
||||
ARG ADDITIONAL_RUNTIME_APT_DEPS="gcc python3-devel krb5-devel"
|
||||
|
||||
ENV AIRFLOW__CORE__LOAD_EXAMPLES="false"
|
||||
|
||||
USER root
|
||||
|
||||
RUN install_debian_runtime_dependencies()
|
||||
|
||||
USER airflow
|
||||
|
||||
RUN pip install \
|
||||
apache-airflow-providers-amazon \
|
||||
apache-airflow-providers-apache-spark \
|
||||
|
Loading…
x
Reference in New Issue
Block a user