Files
openclaw-proxy/Dockerfile
Joshua Adkisson a6a7f82109
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Initial: OpenClaw + Claude Pro Proxy with CI/CD
2026-04-02 10:24:02 -05:00

36 lines
975 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 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
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
USER openclaw
WORKDIR /home/openclaw
EXPOSE 3456 18789 18790
ENTRYPOINT ["tini", "--"]
CMD ["/usr/local/bin/entrypoint.sh"]