Files
BOS-React-/Dockerfile
aaryaman-s e2a2034e31 Add files via upload
Docker filea added
2025-07-22 12:17:40 +05:30

23 lines
334 B
Docker

# 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;"]