Update Dockerfile
Browse files12345678910111213141516171819202122FROM node:18-alpine# Install Python so we can run your magic scriptRUN apk add --no-cache python3WORKDIR /appCOPY package*.json ./RUN npm installCOPY . .# CRITICAL FIX: Run the script to generate the missing 'app' folderRUN python3 install.py# Now build the appRUN npm run buildEXPOSE 7860CMD ["npm", "start", "--", "-p", "7860"]123456789101112131415161718192021FROM node:18-alpineWORKDIR /app# Copy dependency listCOPY package*.json ./# Install dependenciesRUN npm install# Copy all your actual files (The ones currently in the Files tab)COPY . .# Build the app from your live filesRUN npm run build# Open the portEXPOSE 7860# Start the appCMD ["npm", "start", "--", "-p", "7860"]
Dockerfile+6-7