-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (40 loc) · 1019 Bytes
/
Dockerfile
File metadata and controls
48 lines (40 loc) · 1019 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
# Update system and install base dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
git \
curl \
wget \
vim \
sudo \
procps \
openssh-client \
ca-certificates \
tini
# Install development tools
RUN apt-get install -y --no-install-recommends \
python3 \
python3-pip \
nodejs \
npm \
golang \
jq \
htop \
tree \
unzip \
protobuf-compiler \
zip fd-find gh
# Install pnpm and OpenAI Codex CLI
RUN npm install -g pnpm && npm install -g @openai/codex
WORKDIR /app
# Install Python dependencies first (cached layer)
COPY pyproject.toml uv.lock README.md LICENSE entrypoint.sh ./
# Copy the full source and install
COPY src ./src
RUN uv sync --no-dev && uv pip install "any-llm-sdk[gemini,xai]" && \
chmod +x /app/entrypoint.sh
WORKDIR /workspace
VOLUME /root/.bub
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["/app/entrypoint.sh"]