k-l-lambda Claude commited on
Commit
e2c9801
·
1 Parent(s): 8b192a5

Add verification steps to check pre-built files exist

Browse files

This will fail fast if LFS files weren't pulled properly.

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +5 -1
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:50
7
 
8
  # Install build dependencies
9
  RUN apt-get update && apt-get install -y \
@@ -33,6 +33,10 @@ RUN npm install --omit=dev && \
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
 
3
  # Set noninteractive installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
+ # Build timestamp to force cache invalidation: 2026-01-12T21:00
7
 
8
  # Install build dependencies
9
  RUN apt-get update && apt-get install -y \
 
33
  # - Backend: backend/dist/backend/src/server.js
34
  # - Parser: public/lib/tgnParser.cjs
35
 
36
+ # Verify dist files exist (will fail if LFS files weren't pulled)
37
+ RUN test -f app/dist/index.html || (echo "ERROR: app/dist/index.html not found" && exit 1)
38
+ RUN test -f backend/dist/backend/src/server.js || (echo "ERROR: backend/dist/backend/src/server.js not found" && exit 1)
39
+
40
  # Set environment variables for Hugging Face Spaces
41
  ENV PORT=7860
42
  ENV HOST=0.0.0.0