mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 22:07:10 +00:00
24 lines
359 B
Docker
24 lines
359 B
Docker
# Stage 1: Build
|
|
FROM node:lts-alpine AS builder
|
|
|
|
ENV FORCE_COLOR=0
|
|
|
|
RUN corepack enable
|
|
|
|
WORKDIR /opt/docusaurus
|
|
|
|
COPY . /opt/docusaurus/
|
|
|
|
RUN npm ci --omit=dev
|
|
|
|
RUN npm run build
|
|
|
|
# Stage 3: Serve with nginx
|
|
FROM nginx:1.28-alpine-slim AS serve
|
|
|
|
COPY --from=builder /opt/docusaurus/build /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|