代码拉取完成,页面将自动刷新
FROM hub.gitee-ai.com/gitee-ai-internal/node:18 AS base
# Install dependencies only when needed
FROM base AS deps
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN apk add --no-cache libc6-compat
COPY --link package.json yarn.lock .yarnrc /app/
WORKDIR /app
RUN yarn config set registry https://registry.npmmirror.com
RUN yarn install --frozen-lockfile
# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
COPY --from=deps --link /app /app
COPY --link . /app
RUN yarn build
# Serve with `docusaurus serve`.
FROM base AS runner
WORKDIR /app
COPY --from=builder --link /app /app
EXPOSE 3000
CMD ["yarn", "serve", "--host", "0.0.0.0", "--no-open"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。