Spaces:
Running
Running
Upload Dockerfile
Browse files- Dockerfile +9 -0
Dockerfile
CHANGED
|
@@ -28,6 +28,11 @@ RUN python3 /tmp/patch_catch_up_fix_frontend.py || true
|
|
| 28 |
# v2: comprehensive catch-up fix + shareable URLs (frontend)
|
| 29 |
COPY patch_catch_up_fix_v2.py /tmp/patch_catch_up_fix_v2.py
|
| 30 |
RUN python3 /tmp/patch_catch_up_fix_v2.py || true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
WORKDIR /source/frontend
|
| 33 |
RUN npm config set fetch-timeout 120000 && npm config set fetch-retries 3 && npm install && npm run build || echo "FRONTEND BUILD FAILED"
|
|
@@ -77,6 +82,10 @@ RUN python3 /tmp/patch_catch_up_fix_backend.py || true
|
|
| 77 |
# v2: comprehensive catch-up fix + shareable URLs (backend — runs after all other backend patches)
|
| 78 |
COPY patch_catch_up_fix_v2.py /tmp/patch_catch_up_fix_v2.py
|
| 79 |
RUN python3 /tmp/patch_catch_up_fix_v2.py || true
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
# === PATCH: fix 404 on root and /api when frontend build is missing ===
|
| 82 |
# Root cause: mkdir -p /app/static creates an empty dir; main.py mounts
|
|
|
|
| 28 |
# v2: comprehensive catch-up fix + shareable URLs (frontend)
|
| 29 |
COPY patch_catch_up_fix_v2.py /tmp/patch_catch_up_fix_v2.py
|
| 30 |
RUN python3 /tmp/patch_catch_up_fix_v2.py || true
|
| 31 |
+
# v3: FIX THE BUILD — v2 left dead imports (_catchupDone, ShareIcon) and an
|
| 32 |
+
# untyped param that fail `npm run build` -> empty /app/static -> NO frontend.
|
| 33 |
+
# This MUST run after v2 so it can complete v2's half-applied patches.
|
| 34 |
+
COPY patch_catch_up_fix_v3.py /tmp/patch_catch_up_fix_v3.py
|
| 35 |
+
RUN python3 /tmp/patch_catch_up_fix_v3.py || true
|
| 36 |
|
| 37 |
WORKDIR /source/frontend
|
| 38 |
RUN npm config set fetch-timeout 120000 && npm config set fetch-retries 3 && npm install && npm run build || echo "FRONTEND BUILD FAILED"
|
|
|
|
| 82 |
# v2: comprehensive catch-up fix + shareable URLs (backend — runs after all other backend patches)
|
| 83 |
COPY patch_catch_up_fix_v2.py /tmp/patch_catch_up_fix_v2.py
|
| 84 |
RUN python3 /tmp/patch_catch_up_fix_v2.py || true
|
| 85 |
+
# v3 backend: fix the event-row filter in session_logger.py that v2 broke
|
| 86 |
+
# (wrong indent -> SyntaxError -> filter never applied -> catch-up errors).
|
| 87 |
+
COPY patch_catch_up_fix_v3.py /tmp/patch_catch_up_fix_v3.py
|
| 88 |
+
RUN python3 /tmp/patch_catch_up_fix_v3.py || true
|
| 89 |
|
| 90 |
# === PATCH: fix 404 on root and /api when frontend build is missing ===
|
| 91 |
# Root cause: mkdir -p /app/static creates an empty dir; main.py mounts
|