# Build React FROM node:18 AS build WORKDIR /app COPY . . RUN npm install --legacy-peer-deps RUN npm run build # Serve with Nginx FROM nginx:alpine COPY --from=build /app/dist /usr/share/nginx/html COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]