generated from pricelees/issue-pr-template
19 lines
370 B
Docker
19 lines
370 B
Docker
# Stage 1: Build the React app
|
|
FROM node:24 AS builder
|
|
WORKDIR /app
|
|
COPY package.json ./
|
|
COPY package-lock.json ./
|
|
|
|
RUN npm install --frozen-lockfile
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build
|
|
|
|
# Stage 2: Serve with Nginx
|
|
FROM nginx:latest
|
|
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;"]
|