Skip to content

Commit 3ca006e

Browse files
debug: add verification steps to identify frontend build failure
1 parent 957dcf0 commit 3ca006e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ COPY tsconfig*.json ./
1515
# Build ONLY frontend (not server)
1616
RUN npx vite build --config vite.config.ts
1717

18+
# Verify build output
19+
RUN ls -la /app/dist/public/ || echo "Build directory not found!"
20+
1821
# Production stage
1922
FROM node:20-alpine
2023

@@ -29,7 +32,11 @@ COPY shared/ ./shared/
2932
COPY server/ ./
3033

3134
# Copy frontend build from builder stage
32-
COPY --from=frontend-builder /app/dist/public/ ./dist/public/
35+
COPY --from=frontend-builder /app/dist/public ./dist/public
36+
37+
# Verify copy worked
38+
RUN ls -la ./dist/public/ || echo "Frontend not copied!"
39+
RUN test -f ./dist/public/index.html && echo " index.html found" || echo " index.html missing"
3340

3441
# Environment
3542
ENV NODE_ENV=production

0 commit comments

Comments
 (0)