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).
This commit is contained in:
parent
fa4970a76c
commit
cd50aa1415
@ -1,13 +1,13 @@
|
||||
DATABASE_URL=postgres://placeholder:placeholder@192.168.0.210:5432/whatsapp_bot_dev
|
||||
TELEGRAM_BOT_TOKEN=placeholder
|
||||
TELEGRAM_OPERATOR_WHITELIST=0
|
||||
TELEGRAM_QR_CHAT_ID=0
|
||||
DATABASE_URL=postgres://waBot:cJe3SGjHHAitNBE4@192.168.0.210:5432/wabot
|
||||
TELEGRAM_BOT_TOKEN=5327571437:AAFlowwnAysTEMx6LtYQNTevGCboKDZoYzY
|
||||
TELEGRAM_OPERATOR_WHITELIST=818380985
|
||||
TELEGRAM_QR_CHAT_ID=818380985
|
||||
DATA_DIR=/data
|
||||
SESSIONS_DIR=/data/sessions
|
||||
MEDIA_DIR=/data/media
|
||||
BOT_HEALTH_PORT=8081
|
||||
BOT_LOG_LEVEL=debug
|
||||
SEED_OPERATOR_TELEGRAM_ID=0
|
||||
SEED_OPERATOR_NAME=Dev
|
||||
SEED_OPERATOR_TELEGRAM_ID=818380985
|
||||
SEED_OPERATOR_NAME=yiekheng (dev)
|
||||
WEB_PORT=3000
|
||||
AUTH_SECRET=86f656580a58f03b6ccb43d257e0e801ecd5356e042e8886b3c7c569e29ff13c
|
||||
|
||||
@ -2,9 +2,10 @@ 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++ \
|
||||
&& corepack enable \
|
||||
&& corepack prepare pnpm@9.12.0 --activate
|
||||
&& npm install -g pnpm@9.12.0
|
||||
|
||||
WORKDIR /workspace
|
||||
ENV PNPM_HOME=/workspace/.pnpm-store
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user