chore: update docker file
This commit is contained in:
@@ -61,3 +61,5 @@
|
|||||||
# 5. ENVIRONMENT VARIABLES
|
# 5. ENVIRONMENT VARIABLES
|
||||||
# ==========================================
|
# ==========================================
|
||||||
.env
|
.env
|
||||||
|
|
||||||
|
.idea
|
||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
FROM node:24-slim
|
||||||
|
USER root
|
||||||
|
|
||||||
|
# Cài đặt các công cụ lõi và thư viện biên dịch
|
||||||
|
RUN apt-get update && apt-get install -y python3 python3-pip git tmux curl build-essential && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Cập nhật npm và cài đặt OpenClaw độc lập
|
||||||
|
RUN npm install -g npm@latest
|
||||||
|
RUN npm install -g openclaw@latest --force
|
||||||
|
|
||||||
|
# Cài đặt ClawTeam
|
||||||
|
RUN git clone https://github.com/HKUDS/ClawTeam.git /opt/clawteam
|
||||||
|
RUN cd /opt/clawteam && pip3 install --break-system-packages --no-cache-dir .
|
||||||
|
RUN chown -R node:node /opt/clawteam
|
||||||
|
|
||||||
|
# Cài đặt Superpowers và dọn dẹp kỹ năng xung đột
|
||||||
|
RUN git clone https://github.com/obra/superpowers.git /opt/superpowers
|
||||||
|
RUN rm -rf /opt/superpowers/skills/subagent-driven-development
|
||||||
|
RUN rm -rf /opt/superpowers/skills/dispatching-parallel-agents
|
||||||
|
RUN chown -R node:node /opt/superpowers
|
||||||
|
|
||||||
|
USER node
|
||||||
+1
-24
@@ -2,30 +2,7 @@ services:
|
|||||||
openclaw-gateway:
|
openclaw-gateway:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile_inline: |
|
dockerfile: ./Dockerfile
|
||||||
FROM node:24-slim
|
|
||||||
USER root
|
|
||||||
|
|
||||||
# Cài đặt các công cụ lõi và thư viện biên dịch
|
|
||||||
RUN apt-get update && apt-get install -y python3 python3-pip git tmux curl build-essential && rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Cập nhật npm và cài đặt OpenClaw độc lập
|
|
||||||
RUN npm install -g npm@latest
|
|
||||||
RUN npm install -g openclaw@latest --force
|
|
||||||
|
|
||||||
# Cài đặt ClawTeam
|
|
||||||
RUN git clone https://github.com/HKUDS/ClawTeam.git /opt/clawteam
|
|
||||||
RUN cd /opt/clawteam && pip3 install --break-system-packages --no-cache-dir .
|
|
||||||
RUN chown -R node:node /opt/clawteam
|
|
||||||
|
|
||||||
# Cài đặt Superpowers và dọn dẹp kỹ năng xung đột
|
|
||||||
RUN git clone https://github.com/obra/superpowers.git /opt/superpowers
|
|
||||||
RUN rm -rf /opt/superpowers/skills/subagent-driven-development
|
|
||||||
RUN rm -rf /opt/superpowers/skills/dispatching-parallel-agents
|
|
||||||
RUN chown -R node:node /opt/superpowers
|
|
||||||
|
|
||||||
USER node
|
|
||||||
|
|
||||||
image: openclaw-clawteam:latest
|
image: openclaw-clawteam:latest
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
Reference in New Issue
Block a user