FROM node:lts-alpine as builder WORKDIR /app COPY package.json package-lock.json ./ RUN npm ci --prefer-offline COPY . . RUN npm run build # Production stage FROM nginx:stable-alpine # Copy build artifacts from the builder stage COPY --from=builder /app/build /usr/share/nginx/html # Expose port 80 (standard HTTP port) EXPOSE 80 # Start Nginx when the container launches CMD ["nginx", "-g", "daemon off;"]