forked from nanocoai/nanoclaw
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.orchestrator
More file actions
58 lines (42 loc) · 1.75 KB
/
Dockerfile.orchestrator
File metadata and controls
58 lines (42 loc) · 1.75 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# NanoClaw Orchestrator
# Runs the orchestrator (Telegram bot, message router, credential proxy)
# inside a container, spawning sibling agent containers via Docker socket.
FROM node:22-slim
# Install Docker CLI and build tools for native modules (better-sqlite3)
RUN apt-get update && apt-get install -y \
docker.io \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy package files for caching
COPY package*.json ./
# Install all deps (need devDependencies for tsc, native modules need build tools)
ENV HUSKY=0
RUN npm install
# Copy source and build TypeScript
COPY src/ ./src/
COPY tsconfig.json ./
RUN npx tsc
# Copy container config (skills, build script, Dockerfile for agent image)
COPY container/ ./container/
# Install tessl CLI and host-side tools
RUN npm install -g tessl && tessl --version
# Scripts (promote-from-orchestrator, etc.)
COPY scripts/ ./scripts/
# Tessl workspace — tile dependencies tracked in git, installed at deploy time
COPY tessl-workspace/tessl.json /app/tessl-workspace/tessl.json
# Copy group templates (used by registerGroup to create CLAUDE.md for new groups)
COPY groups/main/CLAUDE.md ./groups/main/CLAUDE.md
COPY groups/global/CLAUDE.md ./groups/global/CLAUDE.md
COPY groups/global/CLAUDE-untrusted.md ./groups/global/CLAUDE-untrusted.md
COPY groups/global/SOUL-untrusted.md ./groups/global/SOUL-untrusted.md
# Remove devDependencies after build
RUN npm prune --omit=dev
# Git safe.directory for bind-mounted repos (backup-repo owned by host user)
RUN git config --global --add safe.directory '*'
# Data directories (store/, data/, groups/, logs/) are bind-mounted at runtime.
# The .env file is also mounted at runtime — never baked into the image.
EXPOSE 3001
CMD ["node", "dist/index.js"]