There was an error while loading. Please reload this page.
1 parent 957dcf0 commit 3ca006eCopy full SHA for 3ca006e
1 file changed
Dockerfile
@@ -15,6 +15,9 @@ COPY tsconfig*.json ./
15
# Build ONLY frontend (not server)
16
RUN npx vite build --config vite.config.ts
17
18
+# Verify build output
19
+RUN ls -la /app/dist/public/ || echo "Build directory not found!"
20
+
21
# Production stage
22
FROM node:20-alpine
23
@@ -29,7 +32,11 @@ COPY shared/ ./shared/
29
32
COPY server/ ./
30
33
31
34
# Copy frontend build from builder stage
-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"
40
41
# Environment
42
ENV NODE_ENV=production
0 commit comments