mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 22:07:10 +00:00
f2803e1d10
[body] [footer(s)]
27 lines
383 B
Docker
27 lines
383 B
Docker
# Stage 1: Base image
|
|
FROM node:lts AS base
|
|
|
|
ENV FORCE_COLOR=0
|
|
|
|
RUN corepack enable
|
|
|
|
WORKDIR /opt/docusaurus
|
|
|
|
# Stage 2: Production build mode
|
|
FROM base AS prod
|
|
|
|
WORKDIR /opt/docusaurus
|
|
|
|
COPY . /opt/docusaurus/
|
|
|
|
RUN npm ci
|
|
|
|
RUN npm run build
|
|
|
|
# Stage 3: Serve with docusaurus serve
|
|
FROM prod AS serve
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["npm", "run", "serve", "--", "--host", "0.0.0.0", "--no-open"]
|