feat: add React frontend. Nginix reverse proxy, Docker Compose

This commit is contained in:
ikechukwu Elizabeth
2026-04-10 04:19:31 +01:00
parent 8db53078d6
commit c7b21e719a
9 changed files with 655 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
# Stage 1: Build the React app
FROM node:24-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2: Serve with Nginx
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]