Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
# v=
|
| 2 |
FROM ubuntu:24.04
|
| 3 |
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
@@ -11,8 +11,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
wget \
|
| 12 |
build-essential \
|
| 13 |
python3 \
|
| 14 |
-
python3-pip \
|
| 15 |
python3-venv \
|
|
|
|
| 16 |
sudo \
|
| 17 |
jq \
|
| 18 |
openssl \
|
|
@@ -28,6 +28,11 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
|
| 28 |
&& apt-get install -y nodejs \
|
| 29 |
&& npm -v
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
# 全局安装 openclaw
|
| 32 |
RUN npm install -g openclaw@latest
|
| 33 |
|
|
|
|
| 1 |
+
# v=20260507c
|
| 2 |
FROM ubuntu:24.04
|
| 3 |
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
| 11 |
wget \
|
| 12 |
build-essential \
|
| 13 |
python3 \
|
|
|
|
| 14 |
python3-venv \
|
| 15 |
+
python3-pip \
|
| 16 |
sudo \
|
| 17 |
jq \
|
| 18 |
openssl \
|
|
|
|
| 28 |
&& apt-get install -y nodejs \
|
| 29 |
&& npm -v
|
| 30 |
|
| 31 |
+
# 安装 gosu(用于降权执行 gateway)
|
| 32 |
+
RUN wget -O /usr/local/bin/gosu \
|
| 33 |
+
https://github.com/tianon/gosu/releases/download/1.18/gosu-amd64 \
|
| 34 |
+
&& chmod +x /usr/local/bin/gosu
|
| 35 |
+
|
| 36 |
# 全局安装 openclaw
|
| 37 |
RUN npm install -g openclaw@latest
|
| 38 |
|