# Production build with Vite preview server FROM node:18-alpine WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies RUN npm install # Copy source code COPY . . # Build the app RUN npm run build # Expose port for Vite preview server EXPOSE 3000 # Serve built files with Vite preview CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "3000"]