cohorta/backend/Dockerfile
Vadym Samoilenko 6d2f59fe74 feat(report): PDF export with Cyrillic, i18n, key decisions + analytics
- PDF via fpdf2 (DejaVu font from fonts-dejavu-core, Cyrillic support)
- Lang param (?lang=ru/en) passed from i18n.language in ThemesPanel
- Prompts updated: executive summary + new key-decisions prompt, both
  write entirely in the requested language
- Analytics section: participation bar chart per participant
- Key themes with quotes rendered as side-bordered blocks
- Filename: ASCII slug for Content-Disposition + UTF-8 filename* fallback
- api.ts: handles PDF blob, decodes UTF-8 filename*, 120s timeout
- AnalyticsPanel, ThemeHighlighter: light-mode colors → dark tokens

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 12:40:54 +01:00

23 lines
492 B
Docker

FROM python:3.12-slim
WORKDIR /app
# Install system deps for bcrypt, pymongo, etc.
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
fonts-dejavu-core \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies first (layer caching)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create upload/temp directories
RUN mkdir -p /app/uploads /app/temp
EXPOSE 5137
CMD ["python", "run.py"]