fix: correct how Dockerfile copies dirs

This commit is contained in:
2025-07-24 17:29:48 +00:00
parent 715bc90340
commit 861eb63b19
3 changed files with 23 additions and 14 deletions

View File

@@ -1,8 +1,13 @@
FROM node:20-alpine AS builder
FROM node:22-alpine AS builder
WORKDIR /app
COPY . .
RUN npm install && npm run build
FROM nginx:alpine
# Optional: use custom nginx config for React Router support
# COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/build /usr/share/nginx/html