-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 1.05 KB
/
Copy pathDockerfile
File metadata and controls
33 lines (25 loc) · 1.05 KB
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
31
32
33
FROM node:20-slim AS base
RUN corepack enable
WORKDIR /app
# Copy workspace root files
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml tsconfig.base.json ./
COPY patches/ patches/
# Copy only the packages we need (mcp + directory + log-node).
# @atrib/directory is needed at runtime for the self-claim publish on boot
# (signClaim helper). Its WASM bridge artifacts ship inside
# packages/directory/wasm/ and load via dynamic import.
COPY packages/mcp/ packages/mcp/
COPY packages/directory/ packages/directory/
COPY services/log-node/ services/log-node/
# D054: bundle the public-explorer HTML + static assets (favicon, icons,
# OG images) so log-node can serve them. apps/dashboard/static/ holds the
# binary assets referenced by the HTML's <link> tags.
COPY apps/dashboard/ apps/dashboard/
RUN pnpm install --frozen-lockfile --filter @atrib/log-node...
RUN pnpm --filter @atrib/mcp build
RUN pnpm --filter @atrib/directory build
RUN pnpm --filter @atrib/log-node build
EXPOSE 3100
ENV PORT=3100
ENV HOST=0.0.0.0
CMD ["node", "services/log-node/dist/main.js"]