FROM node:18 # Set working directory WORKDIR /app # Copy dependency files and install dependencies COPY package*.json ./ RUN npm install # Copy rest of the code and build the application COPY . . RUN npm run build # Use a simple HTTP server to serve the built static files EXPOSE 5173 CMD ["npx", "vite", "preview", "--port", "5173"]