| FROM node:22-bookworm |
|
|
| |
| RUN curl -fsSL https://bun.sh/install | bash |
| ENV PATH="/root/.bun/bin:${PATH}" |
|
|
| |
| RUN corepack enable |
|
|
| WORKDIR /app |
|
|
| ARG CLAWDBOT_DOCKER_APT_PACKAGES="" |
| RUN if [ -n "$CLAWDBOT_DOCKER_APT_PACKAGES" ]; then \ |
| apt-get update && \ |
| DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends $CLAWDBOT_DOCKER_APT_PACKAGES && \ |
| apt-get clean && \ |
| rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*; \ |
| fi |
|
|
| |
| RUN apt-get update && \ |
| DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git && \ |
| apt-get clean && \ |
| rm -rf /var/lib/apt/lists/* |
|
|
| RUN npm i -g clawdbot |
|
|
| |
| RUN git clone https://github.com/moltbot/moltbot.git ./ |
|
|
| |
| RUN pnpm install --frozen-lockfile |
| RUN pnpm build |
|
|
| |
| ENV CLAWDBOT_PREFER_PNPM=1 |
| RUN pnpm ui:install |
| RUN pnpm ui:build |
|
|
| |
| ENV NODE_ENV=production |
| ENV GATEWAY__CONTROLUI__ALLOWINSECUREAUTH=true |
|
|
| |
| EXPOSE 18789 |
|
|
| |
| CMD ["node","dist/index.js","gateway","--bind","lan","--port","18789","--allow-unconfigured","--auth","token","--token","3f9dce3b44fbb40e1bba6dd0d5d302361a01e63bc0d40982","--password","admin123"] |
|
|
| |