-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 743 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 743 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
FROM oven/bun:latest
WORKDIR /app
# Install dependencies
COPY package.json bun.lock* ./
RUN bun install --production
# Copy source
COPY . .
# Create directories for file downloads
RUN mkdir -p files
# The bot uses Telegram polling — no ports to expose.
# Configure via environment variables or mount config.json at runtime.
#
# Required volume mounts for each backend:
# Claude: -v ~/.claude:/root/.claude
# Codex: -v ~/.codex:/root/.codex
# Gemini: -v ~/.gemini:/root/.gemini
#
# Example:
# docker run -d --name tg-ai-bridge \
# -v $(pwd)/config.json:/app/config.json:ro \
# -v ~/.claude:/root/.claude \
# telegram-ai-bridge --backend claude
ENTRYPOINT ["bun", "start.js", "start"]
CMD ["--backend", "claude"]