Add files via upload

Docker filea added
This commit is contained in:
aaryaman-s
2025-07-22 12:17:40 +05:30
committed by GitHub
parent 7305fc1311
commit e2a2034e31
2 changed files with 40 additions and 0 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
# Stage 1: Build React app
FROM node:18 as build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2: Serve with nginx
FROM nginx:alpine
COPY --from=build /app/build /usr/share/nginx/html
# Expose port 80
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]