Includes: API (Express/TypeScript), Astro site, Python workers, document generators, FCC compliance tools, Canada CRTC formation, Ansible infrastructure, and deployment scripts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
31 lines
812 B
Docker
31 lines
812 B
Docker
FROM python:3.12-slim
|
|
|
|
# Install LibreOffice for DOCX→PDF, Playwright deps, and system packages
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
libreoffice-writer \
|
|
fonts-liberation \
|
|
fonts-dejavu \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# Install Python dependencies
|
|
COPY scripts/requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Install Playwright browsers
|
|
RUN playwright install chromium && playwright install-deps chromium
|
|
|
|
# Copy all scripts
|
|
COPY scripts/ /app/scripts/
|
|
COPY docs/product-facts.md /app/docs/product-facts.md
|
|
|
|
# Create data directories
|
|
RUN mkdir -p /app/data/screenshots /app/data/documents /app/data/logs
|
|
|
|
ENV PYTHONPATH=/app
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
EXPOSE 8090
|
|
CMD ["python", "-m", "scripts.workers.job_server"]
|