forked from ninjahawk/hollow-agentOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (39 loc) · 1.34 KB
/
Copy pathDockerfile
File metadata and controls
49 lines (39 loc) · 1.34 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
FROM python:3.12-slim
WORKDIR /agentOS
# System deps — core CLI tools pre-installed for the app catalog
RUN apt-get update && apt-get install -y --no-install-recommends \
ripgrep \
fd-find \
fzf \
jq \
bat \
curl \
git \
wget \
unzip \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# bat is installed as batcat on Debian/Ubuntu — symlink to bat
RUN ln -sf /usr/bin/batcat /usr/local/bin/bat 2>/dev/null || true
# fd-find is installed as fdfind — symlink to fd
RUN ln -sf /usr/bin/fdfind /usr/local/bin/fd 2>/dev/null || true
# Install Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project
COPY . .
# Memory and workspace directories
RUN mkdir -p /agentOS/memory \
/agentOS/workspace/agents \
/agentOS/workspace/wrappers \
/agentOS/workspace/sandbox \
/agentOS/workspace/bin \
/agentOS/store/data
# Config: use config.json if present, otherwise config.example.json
RUN test -f config.json || cp config.example.json config.json
EXPOSE 7777
HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=3 \
CMD curl -f http://localhost:7777/health || exit 1
# entrypoint.sh starts the autonomy daemon in the background, then uvicorn
RUN chmod +x entrypoint.sh
CMD ["./entrypoint.sh"]