feat: Add Dockerfile for multi-stage build of React application served by Nginx

This commit is contained in:
2025-12-08 21:11:03 +05:30
parent f7a6753a46
commit fe772067dd

View File

@@ -1,9 +1,9 @@
# Stage 1: Build the React application
FROM node:18-alpine as build
FROM node:18-alpine AS build
WORKDIR /app
COPY package*.json ./
COPY package.json ./
RUN npm install
COPY . .