Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
CHANGED
|
@@ -6,6 +6,17 @@ RUN apt-get update && apt-get install -y git && apt-get clean
|
|
| 6 |
USER airflow
|
| 7 |
ENV AIRFLOW__WEBSERVER__WEB_SERVER_PORT=7860
|
| 8 |
ENV AIRFLOW__CORE__LOAD_EXAMPLES=False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
COPY requirements.txt .
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 6 |
USER airflow
|
| 7 |
ENV AIRFLOW__WEBSERVER__WEB_SERVER_PORT=7860
|
| 8 |
ENV AIRFLOW__CORE__LOAD_EXAMPLES=False
|
| 9 |
+
# 1. Give the webserver 10 minutes to finish DB sync (default is 2 mins)
|
| 10 |
+
ENV AIRFLOW__WEBSERVER__WEB_SERVER_STARTUP_TIMEOUT=600
|
| 11 |
+
|
| 12 |
+
# 2. Reduce workers to 2 (4 is too many for HF Free Tier RAM)
|
| 13 |
+
ENV AIRFLOW__WEBSERVER__WORKERS=2
|
| 14 |
+
|
| 15 |
+
# 3. Ensure it's using the right Executor for your external DB
|
| 16 |
+
ENV AIRFLOW__CORE__EXECUTOR=LocalExecutor
|
| 17 |
+
|
| 18 |
+
# 4. Force the port again just to be safe
|
| 19 |
+
ENV AIRFLOW__WEBSERVER__WEB_SERVER_PORT=7860
|
| 20 |
|
| 21 |
COPY requirements.txt .
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|