ui/Dockerfile

11 lines
258 B
Text
Raw Normal View History

FROM node:22-alpine AS builder
WORKDIR /site
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run docs:build
FROM nginx:alpine
COPY --from=builder /site/docs/dist /usr/share/nginx/html
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf