send2streamer/Dockerfile
vrubelroman 620c1e5427
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 29s
Censor profanity: "..." on screen, spoken as "beep"
New profanity.js does whole-word matching against a Russian/English
root list (avoids false positives like "победа", "тебя", "сукно").
Applied once per message before it's used anywhere downstream
(display, TTS, AI reply input) — screen shows "..." in place of a
censored word, while the TTS text uses "бип" so it's heard as a beep
instead of read literally.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-01 18:01:36 +00:00

16 lines
319 B
Docker

FROM node:22-alpine
RUN apk add --no-cache python3 py3-pip && \
pip install --no-cache-dir --break-system-packages edge-tts
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci --omit=dev
COPY server.js db.js profanity.js ai-prompt.txt ./
COPY public ./public
EXPOSE 3000
CMD ["node", "server.js"]