Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (44 loc) · 1.52 KB
/
Copy pathDockerfile
File metadata and controls
54 lines (44 loc) · 1.52 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
50
51
52
53
54
# TinyAgent Docker Image
# Base: Python 3.13
FROM python:3.13-slim
LABEL maintainer="TinyAgent"
LABEL description="TinyAgent - AI Research Agent"
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app
ENV APP_BUILDER=/app/CLIs/app-builder.sh
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
gnupg \
apt-transport-https \
ca-certificates \
zstd \
procps \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js, Gemini CLI, and Claude Code
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g @google/gemini-cli \
&& npm install -g @anthropic-ai/claude-code \
&& rm -rf /var/lib/apt/lists/*
# Install Google Cloud SDK
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" \
| tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg \
| gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg \
&& apt-get update && apt-get install -y google-cloud-cli \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
RUN chmod +x /app/CLIs/app-builder.sh
# Default entrypoint
ENTRYPOINT ["python"]