19 lines
302 B
Docker
19 lines
302 B
Docker
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app/docs
|
|
|
|
COPY docs/package*.json ./
|
|
RUN npm install
|
|
|
|
COPY docs ./
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=builder /app/docs/dist /usr/share/nginx/html
|
|
COPY docs/nginx.conf /etc/nginx/http.d/default.conf
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|