Фикс сборки airflow

This commit is contained in:
2025-11-03 21:51:51 +03:00
parent 24a50da536
commit 29df042271
5 changed files with 60 additions and 14 deletions
+4 -7
View File
@@ -4,11 +4,11 @@ FROM apache/airflow:2.9.2
# Set environment variables
ENV AIRFLOW_HOME=/opt/airflow
# Copy the optimized requirements file
COPY requirements-optimized.txt .
# Copy the project requirements file
COPY --chown=airflow:0 requirements.txt ${AIRFLOW_HOME}/requirements.txt
# Install the required Python packages
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r ${AIRFLOW_HOME}/requirements.txt
# Create necessary directories
RUN mkdir -p /opt/airflow/dags /opt/airflow/logs /opt/airflow/config /opt/airflow/data
@@ -16,11 +16,8 @@ RUN mkdir -p /opt/airflow/dags /opt/airflow/logs /opt/airflow/config /opt/airflo
# Set working directory
WORKDIR ${AIRFLOW_HOME}
# Change ownership to airflow user
RUN chown -R airflow:airflow ${AIRFLOW_HOME}
# Expose the webserver port
EXPOSE 8080
# The image will use Airflow's default entrypoint
# Commands will be passed at runtime
# Commands will be passed at runtime