forked from MystenLabs/MemWal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs.Dockerfile
More file actions
30 lines (20 loc) · 809 Bytes
/
Copy pathdocs.Dockerfile
File metadata and controls
30 lines (20 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# ============================================================
# Walrus Memory Docs — Dockerfile
# Mintlify docs site — install + serve
# Build context: repo root
# ============================================================
FROM node:22-alpine
RUN corepack enable && corepack prepare pnpm@9.12.3 --activate
WORKDIR /app
# Copy only the docs workspace inputs first for better layer caching
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
COPY docs/package.json ./docs/package.json
# Install workspace dependencies, including Mintlify
RUN pnpm install --frozen-lockfile
# Copy the full docs site after dependencies are in place
COPY docs/ ./docs/
WORKDIR /app/docs
ENV HOST=0.0.0.0
ENV PORT=3000
EXPOSE 3000
CMD ["pnpm", "exec", "mintlify", "dev", "--host", "0.0.0.0", "--port", "3000"]