FROM node:20-alpine WORKDIR /app # Install deps first (better caching) COPY package.json package-lock.json* ./ RUN npm install # Copy source COPY . . # Build the app RUN npm run build # Expose HF default port EXPOSE 7860 # Serve the built site CMD ["npm", "run", "start"]