Initial: OpenClaw + Claude Pro Proxy with CI/CD
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
This commit is contained in:
35
Dockerfile
Normal file
35
Dockerfile
Normal file
@@ -0,0 +1,35 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user