Files
openclaw-proxy/Dockerfile
Joshua Adkisson 15de67f857
All checks were successful
Build and Push / build (push) Successful in 13s
Fix: use node user instead of openclaw
2026-04-02 10:47:02 -05:00

35 lines
898 B
Docker

FROM node:20-bookworm-slim
RUN apt-get update && apt-get install -y \
git curl ca-certificates tini \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g @anthropic-ai/claude-code
RUN git clone https://github.com/wende/claude-max-api-proxy.git /opt/claude-max-api-proxy \
&& cd /opt/claude-max-api-proxy \
&& npm install \
&& npm run build
RUN git clone --depth 1 https://github.com/openclaw/openclaw.git /opt/openclaw \
&& cd /opt/openclaw \
&& corepack enable \
&& pnpm install --frozen-lockfile \
&& pnpm build
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 node
WORKDIR /home/node
EXPOSE 3456 18789 18790
ENTRYPOINT ["tini", "--"]
CMD ["/usr/local/bin/entrypoint.sh"]