Skip to content

Commit a52f827

Browse files
committed
build(docker): add docs build dockerfile
1 parent bb57bcc commit a52f827

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/private/docs/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:21-slim AS base
2+
ENV PNPM_HOME="/pnpm"
3+
ENV PATH="$PNPM_HOME:$PATH"
4+
RUN corepack enable
5+
COPY . /app
6+
WORKDIR /app
7+
8+
FROM base AS build
9+
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
10+
RUN pnpm run build:docs
11+
12+
FROM base
13+
COPY --from=build /app/packages/private/docs/.vitepress/dist /app/packages/private/docs/.vitepress/dist

0 commit comments

Comments
 (0)