miike-ai commited on
Commit
1b0bc86
·
verified ·
1 Parent(s): 867e2d3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -3
Dockerfile CHANGED
@@ -15,13 +15,13 @@ RUN apt-get update && \
15
  gpg \
16
  apt-transport-https \
17
  git \
18
- nodejs \
19
- npm \
20
  python3.12 \
21
  python3.12-venv \
22
  python3.12-dev \
23
- python3.12-distutils \
24
  python3-pip && \
 
 
 
25
  # Make Python 3.12 the default
26
  update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 && \
27
  update-alternatives --set python3 /usr/bin/python3.12 && \
@@ -32,9 +32,21 @@ RUN apt-get update && \
32
  apt-get clean && \
33
  rm -rf /var/lib/apt/lists/*
34
 
 
 
 
35
  # Create a directory for the workspace
36
  RUN mkdir -p /workspace
37
 
 
 
 
 
 
 
 
 
 
38
  # Create configuration directory for code-server and Ollama
39
  RUN mkdir -p /root/.config/code-server /root/.ollama
40
 
 
15
  gpg \
16
  apt-transport-https \
17
  git \
 
 
18
  python3.12 \
19
  python3.12-venv \
20
  python3.12-dev \
 
21
  python3-pip && \
22
+ # Install Node.js 22.x from NodeSource
23
+ curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
24
+ apt-get install -y nodejs && \
25
  # Make Python 3.12 the default
26
  update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 && \
27
  update-alternatives --set python3 /usr/bin/python3.12 && \
 
32
  apt-get clean && \
33
  rm -rf /var/lib/apt/lists/*
34
 
35
+ # Install global npm packages
36
+ RUN npm install -g @anthropic-ai/claude-code @anthropic-ai/dxt
37
+
38
  # Create a directory for the workspace
39
  RUN mkdir -p /workspace
40
 
41
+ # Copy requirements file (if it exists)
42
+ # This goes BEFORE copying the rest of the code for better caching
43
+ COPY requirements.txt* /workspace/
44
+
45
+ # Install Python packages if requirements.txt exists
46
+ RUN if [ -f /workspace/requirements.txt ]; then \
47
+ pip3 install --no-cache-dir -r /workspace/requirements.txt; \
48
+ fi
49
+
50
  # Create configuration directory for code-server and Ollama
51
  RUN mkdir -p /root/.config/code-server /root/.ollama
52