Spaces:
Sleeping
Sleeping
Commit Β·
b379f3f
1
Parent(s): c5d5cd5
Fix: upgrade to Node 22 for Vite 8 compatibility
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# ============================================================
|
| 2 |
# Stage 1 β Build the React frontend
|
| 3 |
# ============================================================
|
| 4 |
-
FROM node:
|
| 5 |
|
| 6 |
WORKDIR /app/frontend
|
| 7 |
|
|
@@ -61,10 +61,10 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
|
| 61 |
|
| 62 |
# ββ Start with Gunicorn (production WSGI server) ββββββββββ
|
| 63 |
CMD ["gunicorn", \
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
|
|
|
| 1 |
# ============================================================
|
| 2 |
# Stage 1 β Build the React frontend
|
| 3 |
# ============================================================
|
| 4 |
+
FROM node:22-slim AS frontend-build
|
| 5 |
|
| 6 |
WORKDIR /app/frontend
|
| 7 |
|
|
|
|
| 61 |
|
| 62 |
# ββ Start with Gunicorn (production WSGI server) ββββββββββ
|
| 63 |
CMD ["gunicorn", \
|
| 64 |
+
"--bind", "0.0.0.0:7860", \
|
| 65 |
+
"--workers", "4", \
|
| 66 |
+
"--timeout", "120", \
|
| 67 |
+
"--access-logfile", "-", \
|
| 68 |
+
"--error-logfile", "-", \
|
| 69 |
+
"--chdir", "/app/backend", \
|
| 70 |
+
"app:app"]
|