diff --git a/.gitignore b/.gitignore index 9494e65..991dc5a 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,5 @@ # 5. ENVIRONMENT VARIABLES # ========================================== .env + +.idea \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f1a5345 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 7f67884..19b38e0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,30 +2,7 @@ services: openclaw-gateway: build: context: . - dockerfile_inline: | - 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 - + dockerfile: ./Dockerfile image: openclaw-clawteam:latest deploy: resources: