# Use Alpine Node.js image FROM node:20-alpine # Set working directory WORKDIR /app # Install git (needed to clone repo) RUN apk add --no-cache git # Clone your Vite.js app from GitHub RUN git clone https://github.com/viratxd/prompt-glow-lab-00.git ./ # Install dependencies RUN npm install # Build Vite app RUN npm run build # Install a small static server to serve `dist/` RUN npm install -g serve # Expose port EXPOSE 7860 # Serve the built Vite app CMD ["serve", "-s", "dist", "-l", "7860"]