OverTry commited on
Commit
71fe7dc
·
verified ·
1 Parent(s): e6a3218

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM debian:bullseye-slim
2
+
3
+ # Install core dependencies and ripgrep (required for Claude grep tool)
4
+ RUN apt-get update && apt-get install -y curl unzip git tmux sudo qrencode ripgrep && rm -rf /var/lib/apt/lists/*
5
+
6
+ # Install ttyd (The web-terminal bridge)
7
+ RUN curl -Ls https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64 -o /usr/local/bin/ttyd && chmod +x /usr/local/bin/ttyd
8
+
9
+ # Create a secure user environment
10
+ RUN useradd -m -s /bin/bash coder && echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
11
+ USER coder
12
+ WORKDIR /home/coder
13
+
14
+ # Install Bun
15
+ RUN curl -fsSL https://bun.sh/install | bash
16
+ ENV PATH="/home/coder/.bun/bin:${PATH}"
17
+
18
+ # Clone and build Gitlawb's OpenClaude
19
+ RUN git clone --depth=1 https://github.com/Gitlawb/openclaude.git /home/coder/openclaude
20
+ WORKDIR /home/coder/openclaude
21
+ RUN bun install && bun run build || true
22
+
23
+ # Copy configuration and startup scripts
24
+ COPY --chown=coder:coder settings.json /home/coder/openclaude/.openclaude/settings.json
25
+ COPY --chown=coder:coder CLAUDE.md /home/coder/openclaude/CLAUDE.md
26
+ COPY --chown=coder:coder start.sh /home/coder/start.sh
27
+ RUN chmod +x /home/coder/start.sh
28
+
29
+ EXPOSE 7860
30
+ CMD ["/home/coder/start.sh"]