cm_whatsapp_bot_v1/docker/tools.Dockerfile
yiekheng cd50aa1415 chore: fix tools pnpm install + populate .env.development
Replace corepack-prepared pnpm with `npm install -g pnpm@9.12.0` so the
binary lives in /usr/local/bin (readable by any UID) instead of root's
corepack cache. Avoids re-downloading pnpm on every container restart
when running as a non-root host user.

Also populate .env.development with real dev credentials (Postgres at
192.168.0.210/wabot, dev Telegram bot, operator Telegram ID 818380985).
2026-05-09 15:29:56 +08:00

13 lines
488 B
Docker

FROM node:22-alpine
# Lightweight build deps for any future native modules (qrcode is pure JS;
# baileys uses precompiled libsignal). git is needed by some pnpm workflows.
# Install pnpm globally via npm — avoids corepack's per-user cache that
# breaks when the container runs as a non-root host UID with HOME=/tmp.
RUN apk add --no-cache git python3 make g++ \
&& npm install -g pnpm@9.12.0
WORKDIR /workspace
ENV PNPM_HOME=/workspace/.pnpm-store
CMD ["tail", "-f", "/dev/null"]