Files
Extrudex/frontend/Dockerfile
Joshua e2be3bffa7
Some checks failed
Dev Build / build-test (pull_request) Failing after 2m13s
CUB-116: Scaffold React frontend — Vite, TS, Tailwind
2026-05-06 10:09:35 -04:00

21 lines
348 B
Docker

# Multi-stage build for production
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Production stage — 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;"]