FROM huayi-assistant-base:1.0.3
USER root
RUN apt-get -o Acquire::ForceIPv4=true -o Acquire::Retries=1 -o Acquire::http::Timeout=25 update \
 && apt-get -o Acquire::ForceIPv4=true install -y --no-install-recommends libreoffice-core libreoffice-writer libreoffice-calc libreoffice-impress fonts-noto-cjk fonts-wqy-zenhei \
 && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir python-docx==1.2.0 openpyxl==3.1.5 reportlab==4.4.4 pypdf==6.15.0 python-pptx==1.0.2 pymupdf==1.27.2
RUN pip install --no-cache-dir aiohttp==3.14.3
COPY source /app/enterprise
COPY source/native/ /app/
COPY source/office_renderer/company-contract-fonts.conf /etc/fonts/conf.d/99-company-contract-fonts.conf
COPY source/app.py /app/app.py
COPY source/enterprise.py /app/enterprise.py
COPY source/company_skills.py /app/company_skills.py
COPY source/rag_vector.py /app/src/rag_vector.py
COPY source/static_app.js /app/static/app.js
RUN mkdir -p /app/static/fonts && ln -s /app/data/custom-fonts /app/static/fonts/custom
ENV PYTHONPATH=/app/enterprise:/app PYTHONUNBUFFERED=1
