Spaces:
Running
Running
Commit
·
a6864cd
1
Parent(s):
786a9ec
Remove debug step to test if build succeeds
Browse filesCo-Authored-By: Claude <noreply@anthropic.com>
- Dockerfile +2 -14
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@ FROM node:20-slim
|
|
| 3 |
# Set noninteractive installation
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
|
| 6 |
-
# Build timestamp to force cache invalidation: 2026-01-12T20:
|
| 7 |
|
| 8 |
# Install build dependencies
|
| 9 |
RUN apt-get update && apt-get install -y \
|
|
@@ -28,23 +28,11 @@ RUN npm install --omit=dev && \
|
|
| 28 |
cd ../backend && npm install --omit=dev && \
|
| 29 |
cd ..
|
| 30 |
|
| 31 |
-
#
|
| 32 |
# - Frontend: app/dist/ (includes onnx files)
|
| 33 |
# - Backend: backend/dist/backend/src/server.js
|
| 34 |
# - Parser: public/lib/tgnParser.cjs
|
| 35 |
|
| 36 |
-
# Debug: Show directory structure (force success with exit 0)
|
| 37 |
-
RUN set +e ; \
|
| 38 |
-
echo "=== Directory structure ===" ; \
|
| 39 |
-
pwd ; \
|
| 40 |
-
ls -la ; \
|
| 41 |
-
echo "=== app/ ===" ; ls -la app/ 2>&1 ; \
|
| 42 |
-
echo "=== app/dist/ ===" ; ls -la app/dist/ 2>&1 ; \
|
| 43 |
-
echo "=== backend/ ===" ; ls -la backend/ 2>&1 ; \
|
| 44 |
-
echo "=== backend/dist/ ===" ; ls -la backend/dist/ 2>&1 ; \
|
| 45 |
-
echo "=== Done ===" ; \
|
| 46 |
-
exit 0
|
| 47 |
-
|
| 48 |
# Set environment variables for Hugging Face Spaces
|
| 49 |
ENV PORT=7860
|
| 50 |
ENV HOST=0.0.0.0
|
|
|
|
| 3 |
# Set noninteractive installation
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
|
| 6 |
+
# Build timestamp to force cache invalidation: 2026-01-12T20:40
|
| 7 |
|
| 8 |
# Install build dependencies
|
| 9 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 28 |
cd ../backend && npm install --omit=dev && \
|
| 29 |
cd ..
|
| 30 |
|
| 31 |
+
# All build steps are pre-built:
|
| 32 |
# - Frontend: app/dist/ (includes onnx files)
|
| 33 |
# - Backend: backend/dist/backend/src/server.js
|
| 34 |
# - Parser: public/lib/tgnParser.cjs
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
# Set environment variables for Hugging Face Spaces
|
| 37 |
ENV PORT=7860
|
| 38 |
ENV HOST=0.0.0.0
|