Fix: use node user instead of openclaw
All checks were successful
Build and Push / build (push) Successful in 13s

This commit is contained in:
Joshua Adkisson
2026-04-02 10:47:02 -05:00
parent e4f17a6c0d
commit 15de67f857
2 changed files with 8 additions and 12 deletions

View File

@@ -17,17 +17,16 @@ RUN git clone --depth 1 https://github.com/openclaw/openclaw.git /opt/openclaw \
&& pnpm install --frozen-lockfile \
&& pnpm build
RUN useradd -m -u 1000 -s /bin/bash openclaw || true
RUN mkdir -p /home/openclaw/.claude \
/home/openclaw/.openclaw \
/home/openclaw/.openclaw/workspace \
&& chown -R 1000:1000 /home/openclaw
RUN mkdir -p /home/node/.claude \
/home/node/.openclaw \
/home/node/.openclaw/workspace \
&& chown -R node:node /home/node
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
USER openclaw
WORKDIR /home/openclaw
USER node
WORKDIR /home/node
EXPOSE 3456 18789 18790