darkfire514 commited on
Commit
4f8aea8
·
verified ·
1 Parent(s): 25a205d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -13,8 +13,8 @@ RUN apt-get update && apt-get install -y \
13
  nginx xz-utils bzip2 ca-certificates \
14
  && apt-get clean && rm -rf /var/lib/apt/lists/*
15
 
16
- # 2. 安装 Node.js 20.x (OpenClaw 强依赖)
17
- RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
18
  && apt-get install -y nodejs \
19
  && apt-get clean && rm -rf /var/lib/apt/lists/*
20
 
@@ -25,7 +25,7 @@ RUN npm install -g openclaw@latest --unsafe-perm
25
  RUN wget https://github.com/tsl0922/ttyd/releases/download/1.7.7/ttyd.x86_64 -O /usr/bin/ttyd \
26
  && chmod +x /usr/bin/ttyd
27
 
28
- # 5. 安装 oauth2-proxy (修复了您之前截断的下载逻辑)
29
  RUN wget https://github.com/oauth2-proxy/oauth2-proxy/releases/download/v7.6.0/oauth2-proxy-v7.6.0.linux-amd64.tar.gz \
30
  && tar -xzvf oauth2-proxy-v7.6.0.linux-amd64.tar.gz \
31
  && mv oauth2-proxy-v7.6.0.linux-amd64/oauth2-proxy /usr/bin/ \
@@ -39,7 +39,6 @@ RUN useradd -m -s /bin/bash user \
39
  && chown -R user:user /var/log/nginx /var/lib/nginx /run/nginx /etc/nginx
40
 
41
  # 7. 拷贝启动脚本和配置文件
42
- # COPY nginx.conf /etc/nginx/nginx.conf <-- 确保您有这个文件
43
  COPY start.sh /home/user/start.sh
44
  RUN chmod +x /home/user/start.sh && chown user:user /home/user/start.sh
45
 
 
13
  nginx xz-utils bzip2 ca-certificates \
14
  && apt-get clean && rm -rf /var/lib/apt/lists/*
15
 
16
+ # 2. 安装 Node.js 22.x (OpenClaw 强依赖 v22.12+)
17
+ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
18
  && apt-get install -y nodejs \
19
  && apt-get clean && rm -rf /var/lib/apt/lists/*
20
 
 
25
  RUN wget https://github.com/tsl0922/ttyd/releases/download/1.7.7/ttyd.x86_64 -O /usr/bin/ttyd \
26
  && chmod +x /usr/bin/ttyd
27
 
28
+ # 5. 安装 oauth2-proxy
29
  RUN wget https://github.com/oauth2-proxy/oauth2-proxy/releases/download/v7.6.0/oauth2-proxy-v7.6.0.linux-amd64.tar.gz \
30
  && tar -xzvf oauth2-proxy-v7.6.0.linux-amd64.tar.gz \
31
  && mv oauth2-proxy-v7.6.0.linux-amd64/oauth2-proxy /usr/bin/ \
 
39
  && chown -R user:user /var/log/nginx /var/lib/nginx /run/nginx /etc/nginx
40
 
41
  # 7. 拷贝启动脚本和配置文件
 
42
  COPY start.sh /home/user/start.sh
43
  RUN chmod +x /home/user/start.sh && chown user:user /home/user/start.sh
44