# Build stage FROM quay.io/fedora/nodejs-18:latest as build WORKDIR /opt/app-root/src COPY package*.json ./ RUN npm install COPY . . RUN npm run build && \ ls -la /opt/app-root/src/build # Production stage - using Fedora NGINX image FROM quay.io/fedora/nginx-126:latest # Create directory structure if it doesn't exist RUN mkdir -p /usr/share/nginx/html # Copy build output to NGINX html directory COPY --from=build /opt/app-root/src/build/ /usr/share/nginx/html/ # Create a test file RUN echo "

# Test Page

If you can see this, NGINX is working correctly!