fix: do proper backend docker build

This commit is contained in:
2025-07-24 16:59:31 +00:00
parent 3eb1522525
commit 830a9280b4
3 changed files with 16 additions and 11 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