forked from team-eric-hitl/human-ai-orchestrator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (29 loc) · 1.08 KB
/
Dockerfile
File metadata and controls
39 lines (29 loc) · 1.08 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
FROM python:3.11-slim
# Install system dependencies including Node.js and npm
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
curl \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Install uv (fast Python package manager)
RUN pip install --no-cache-dir uv
# Install Claude Code CLI from Anthropic
RUN npm install -g @anthropic-ai/claude-code
# Set workdir
WORKDIR /workspace
# Copy only dependency files first for caching
COPY pyproject.toml uv.lock README.md ./
# Install Python dependencies
RUN uv sync
# Copy source code (excluding .venv and other unnecessary files)
COPY src/ ./src/
# Expose Jupyter port
EXPOSE 8888
# Set environment variables for Jupyter
ENV PYTHONUNBUFFERED=1 \
JUPYTER_ALLOW_INSECURE_WRITES=1 \
JUPYTER_TOKEN=devtoken
# Default command: start Jupyter Lab
CMD ["jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root", "--NotebookApp.token=devtoken", "--NotebookApp.notebook_dir=/workspace"]