k-l-lambda Claude commited on
Commit
adc9eb5
·
1 Parent(s): 16054ff

Add diagnostic output to vite build step

Browse files

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

Files changed (1) hide show
  1. Dockerfile +15 -3
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-12T19:10
7
 
8
  # Install build dependencies
9
  RUN apt-get update && apt-get install -y \
@@ -31,8 +31,20 @@ RUN npm install --omit=dev && \
31
  # Skip jison parser build - pre-built tgnParser.cjs is already in public/lib/
32
  # RUN tsx tools/buildJisonParser.ts
33
 
34
- # Build frontend (generates dist folder) - use local vite binary
35
- RUN cd app && ./node_modules/.bin/vite build 2>&1
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
  # Build backend with esbuild (handles ESM imports without .js extensions)
38
  RUN esbuild backend/src/server.ts --bundle --platform=node --target=node20 --format=esm --outfile=backend/dist/server.js --external:express --external:socket.io --external:cors --external:dotenv --external:uuid
 
3
  # Set noninteractive installation
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
+ # Build timestamp to force cache invalidation: 2026-01-12T19:15
7
 
8
  # Install build dependencies
9
  RUN apt-get update && apt-get install -y \
 
31
  # Skip jison parser build - pre-built tgnParser.cjs is already in public/lib/
32
  # RUN tsx tools/buildJisonParser.ts
33
 
34
+ # Build frontend (generates dist folder) - add diagnostics
35
+ RUN cd app && \
36
+ echo "=== Node version ===" && \
37
+ node --version && \
38
+ echo "=== NPM version ===" && \
39
+ npm --version && \
40
+ echo "=== Current directory ===" && \
41
+ pwd && \
42
+ echo "=== Directory listing ===" && \
43
+ ls -la && \
44
+ echo "=== node_modules/.bin listing ===" && \
45
+ ls -la node_modules/.bin/ && \
46
+ echo "=== Starting vite build ===" && \
47
+ ./node_modules/.bin/vite build
48
 
49
  # Build backend with esbuild (handles ESM imports without .js extensions)
50
  RUN esbuild backend/src/server.ts --bundle --platform=node --target=node20 --format=esm --outfile=backend/dist/server.js --external:express --external:socket.io --external:cors --external:dotenv --external:uuid