Some checks failed
Build and Push Docker Images / verify-docs-sync (push) Successful in 7s
Build and Push Docker Images / build-backend (push) Successful in 15s
Build and Push Docker Images / build-docs (push) Failing after 41s
Build and Push Docker Images / build-frontend (push) Successful in 14s
18 lines
394 B
Docker
18 lines
394 B
Docker
FROM node:20-alpine AS builder
|
|
WORKDIR /app/docs-site
|
|
|
|
COPY docs-site/package.json docs-site/package-lock.json* ./
|
|
RUN npm install
|
|
|
|
COPY docs-site ./
|
|
COPY docs /app/docs
|
|
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.27-alpine AS runner
|
|
COPY docs-site/nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=builder /app/docs-site/build/docs /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|