Spaces:
Running
Running
Upload Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
|
@@ -25,6 +25,9 @@ RUN python3 /tmp/patch_auto_continue_v17.py || true
|
|
| 25 |
# Run our frontend catch-up fix AFTER all other frontend patches
|
| 26 |
COPY patch_catch_up_fix_frontend.py /tmp/patch_catch_up_fix_frontend.py
|
| 27 |
RUN python3 /tmp/patch_catch_up_fix_frontend.py || true
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
WORKDIR /source/frontend
|
| 30 |
RUN npm config set fetch-timeout 120000 && npm config set fetch-retries 3 && npm install && npm run build || echo "FRONTEND BUILD FAILED"
|
|
@@ -71,6 +74,9 @@ COPY patch_permanent_session_logging.py /tmp/patch_permanent_session_logging.py
|
|
| 71 |
RUN python3 /tmp/patch_permanent_session_logging.py || true
|
| 72 |
COPY patch_catch_up_fix_backend.py /tmp/patch_catch_up_fix_backend.py
|
| 73 |
RUN python3 /tmp/patch_catch_up_fix_backend.py || true
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
# === PATCH: fix 404 on root and /api when frontend build is missing ===
|
| 76 |
# Root cause: mkdir -p /app/static creates an empty dir; main.py mounts
|
|
@@ -100,4 +106,4 @@ ENV HOME=/home/user PYTHONUNBUFFERED=1 PYTHONPATH=/app PATH="/app/.venv/bin:$PAT
|
|
| 100 |
|
| 101 |
EXPOSE 7860
|
| 102 |
WORKDIR /app/backend
|
| 103 |
-
CMD ["bash", "start.sh"]
|
|
|
|
| 25 |
# Run our frontend catch-up fix AFTER all other frontend patches
|
| 26 |
COPY patch_catch_up_fix_frontend.py /tmp/patch_catch_up_fix_frontend.py
|
| 27 |
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"
|
|
|
|
| 74 |
RUN python3 /tmp/patch_permanent_session_logging.py || true
|
| 75 |
COPY patch_catch_up_fix_backend.py /tmp/patch_catch_up_fix_backend.py
|
| 76 |
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
|
|
|
|
| 106 |
|
| 107 |
EXPOSE 7860
|
| 108 |
WORKDIR /app/backend
|
| 109 |
+
CMD ["bash", "start.sh"]
|