Docker build verified locally (docker build -t volcanic-secretary . succeeded on this machine). Step 6's manual end-to-end checklist against a real Telegram bot was not run in this environment (no bot token or owner id available); the checklist is kept in the README's Tests section for the owner to run before relying on this in production. Claude-Session: https://claude.ai/code/session_01JtuZTCMW9TyogEmBgGf8JT
20 lines
528 B
Docker
20 lines
528 B
Docker
FROM node:24-bookworm-slim
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends bash ca-certificates git ripgrep python3 python-is-python3 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci --ignore-scripts
|
|
COPY tsconfig.json tsconfig.build.json ./
|
|
COPY src ./src
|
|
RUN npm run build && npm prune --omit=dev
|
|
|
|
ENV NODE_ENV=production \
|
|
WORKSPACE_DIR=/workspace \
|
|
PI_CODING_AGENT_DIR=/pi-agent
|
|
VOLUME ["/workspace", "/pi-agent"]
|
|
|
|
CMD ["node", "dist/main.js"]
|