Eurosmart commited on
Commit
5a7b53b
·
1 Parent(s): 8935f1a
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -4,10 +4,6 @@ FROM apache/airflow:2.2.2-python3.9
4
  # Set up a new user named "user" with user ID 1000
5
  RUN useradd -m -u 1000 user
6
 
7
- USER user
8
-
9
- ENV HOME=/home/user \
10
- PATH=/home/user/.local/bin:$PATH
11
 
12
  # Set the working directory
13
  WORKDIR /opt/airflow
@@ -21,7 +17,12 @@ COPY --chown=user config/ config/
21
  # Install Python dependencies
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
 
 
24
  # Set environment variables (if not using Render's built-in environment management)
 
 
 
25
  ENV AIRFLOW_HOME=/opt/airflow
26
  ENV AIRFLOW__CORE__LOAD_EXAMPLES=False
27
  ENV AIRFLOW__CORE__DAGS_FOLDER=/opt/airflow/dags
 
4
  # Set up a new user named "user" with user ID 1000
5
  RUN useradd -m -u 1000 user
6
 
 
 
 
 
7
 
8
  # Set the working directory
9
  WORKDIR /opt/airflow
 
17
  # Install Python dependencies
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
+ USER user
21
+
22
  # Set environment variables (if not using Render's built-in environment management)
23
+ ENV HOME=/home/user \
24
+ PATH=/home/user/.local/bin:$PATH
25
+
26
  ENV AIRFLOW_HOME=/opt/airflow
27
  ENV AIRFLOW__CORE__LOAD_EXAMPLES=False
28
  ENV AIRFLOW__CORE__DAGS_FOLDER=/opt/airflow/dags