Files
forwarder/web/Dockerfile
2026-10-23 18:36:20 +01:00

18 lines
360 B
Docker

# Build stage — compile the React admin UI
FROM node:24-alpine AS builder
WORKDIR /build
COPY admin-ui/package*.json ./
RUN npm ci
COPY admin-ui/ ./
RUN npm run build
# Runtime stage — nginx serving static assets
FROM nginx:1.27-alpine
COPY --from=builder /build/dist /usr/share/nginx/html
COPY web/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80