diff --git a/.env.development b/.env.development index 2bfe660..73ddfaf 100644 --- a/.env.development +++ b/.env.development @@ -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 diff --git a/docker/tools.Dockerfile b/docker/tools.Dockerfile index 6987de5..4c97c86 100644 --- a/docker/tools.Dockerfile +++ b/docker/tools.Dockerfile @@ -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