Add files via upload

This commit is contained in:
aaryaman-s
2025-07-22 12:22:24 +05:30
committed by GitHub
parent ef229f7746
commit 3321e46f6b

22
frontend/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;"]