Files
docs/Dockerfile

14 lines
299 B
Docker

# syntax=docker/dockerfile:1
FROM node:24-alpine AS builder
WORKDIR /docs
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /docs/.vitepress/dist /usr/share/nginx/html
EXPOSE 8080