| |
| FROM node:22-slim AS builder |
| RUN apt-get update && apt-get install -y git python3 make g++ && rm -rf /var/lib/apt/lists/* |
| WORKDIR /build |
| RUN git clone https://github.com/moltbot/moltbot.git . |
| RUN npm install -g pnpm && pnpm install && pnpm run build |
|
|
| |
| FROM node:22-slim |
| WORKDIR /app |
|
|
| |
| COPY --from=builder /build/dist ./dist |
| COPY --from=builder /build/package.json ./package.json |
| COPY --from=builder /build/node_modules ./node_modules |
|
|
| |
| ENV NODE_ENV=production |
| ENV PORT=7860 |
| ENV CONTAINER=true |
| ENV MOLT_SKIP_SERVICE_CHECK=true |
| |
| ENV HOST=0.0.0.0 |
|
|
| EXPOSE 7860 |
| |
| |
| ENV OPENCLAW_GATEWAY_MODE=local |
| ENV MOLT_GATEWAY_MODE=local |
|
|
| |
| |
| |
| |
| CMD ["node", "dist/index.js", "gateway", "run", "--port", "7860", "--allow-unconfigured"] |