Hermes Agent commited on
Commit
bdfe68d
·
1 Parent(s): 8e431aa

fix: Add build-essential, make, g++ and upgrade to Node 22 LTS for better-sqlite3 native compilation

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -9,22 +9,26 @@ ENV XDG_STATE_HOME=/data/state
9
 
10
  ARG OPENCODE_VERSION=1.18.3
11
 
12
- # Install dependencies (including git, python3, curl, ca-certificates, nginx)
13
  RUN apt-get update && apt-get install -y --no-install-recommends \
14
  curl \
15
  ca-certificates \
16
  git \
17
  python3 \
18
  nginx \
 
 
 
19
  && rm -rf /var/lib/apt/lists/*
20
 
21
- # Install Node.js 20 LTS (required for OmniRoute modern JS/Regex features)
22
- RUN curl -fsSL https://nodejs.org/dist/v20.18.0/node-v20.18.0-linux-x64.tar.gz \
23
  | tar -xz -C /usr/local --strip-components=1
24
 
25
  # Install OmniRoute globally
26
  RUN npm install -g omniroute
27
 
 
28
  # Download opencode binary
29
  RUN curl -fsSL "https://github.com/anomalyco/opencode/releases/download/v${OPENCODE_VERSION}/opencode-linux-x64.tar.gz" \
30
  | tar -xz -C /usr/local/bin opencode
 
9
 
10
  ARG OPENCODE_VERSION=1.18.3
11
 
12
+ # Install dependencies (including git, python3, curl, ca-certificates, nginx, and build tools for native modules)
13
  RUN apt-get update && apt-get install -y --no-install-recommends \
14
  curl \
15
  ca-certificates \
16
  git \
17
  python3 \
18
  nginx \
19
+ build-essential \
20
+ make \
21
+ g++ \
22
  && rm -rf /var/lib/apt/lists/*
23
 
24
+ # Install Node.js 22 LTS (required for OmniRoute & undici dependencies)
25
+ RUN curl -fsSL https://nodejs.org/dist/v22.14.0/node-v22.14.0-linux-x64.tar.gz \
26
  | tar -xz -C /usr/local --strip-components=1
27
 
28
  # Install OmniRoute globally
29
  RUN npm install -g omniroute
30
 
31
+
32
  # Download opencode binary
33
  RUN curl -fsSL "https://github.com/anomalyco/opencode/releases/download/v${OPENCODE_VERSION}/opencode-linux-x64.tar.gz" \
34
  | tar -xz -C /usr/local/bin opencode