blob: 6fb253c7427c486026e232fd44e855ff653a1852 (
plain)
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
|
# Claudomator Agent Base Image
FROM ubuntu:24.04
# Avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Install core build and dev tools
RUN apt-get update && apt-get install -y \
git \
curl \
make \
wget \
nodejs \
npm \
sqlite3 \
jq \
sudo \
&& rm -rf /var/lib/apt/lists/*
# Install Go 1.22+
RUN wget https://go.dev/dl/go1.22.1.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.22.1.linux-amd64.tar.gz && \
rm go1.22.1.linux-amd64.tar.gz
ENV PATH=$PATH:/usr/local/go/bin
# Install Claude CLI
RUN npm install -g @anthropic-ai/claude-code
# Install specific node tools
RUN npm install -g postcss-cli tailwindcss autoprefixer
# Setup workspace
WORKDIR /workspace
# Add a user claudomator-agent
RUN useradd -m claudomator-agent && \
echo "claudomator-agent ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
# Ensure /usr/local/bin is writable for npm or use a different path
# @anthropic-ai/claude-code might need some extra setup or just work
USER claudomator-agent
# Default command
CMD ["/bin/bash"]
|