RAG/docker/soffice
linlin 6c14f69dac 修改部署:在windows上部署;readme表述;pip加速 2026-02-02 22:59:42 +08:00
..
Dockerfile 修改部署:在windows上部署;readme表述;pip加速 2026-02-02 22:59:42 +08:00
README.md 添加了soffice的fastapi服务,用于将doc转换为docx 2026-01-05 00:06:13 +08:00
app.py 修改file_parser.py中的get_text_from_bytes方法 2026-01-07 17:12:58 +08:00

README.md

soffice-service

Minimal service that provides a REST endpoint to convert .doc files (server-side paths) to .docx using LibreOffice (soffice).

Usage:

  • Build: docker-compose build soffice-service
  • Start: docker-compose up -d soffice-service
  • Health: GET /health
  • Convert (server-path): POST /convert with JSON body { "path": "/path/to/file.doc", "delete_original": true }

Notes:

  • Ensure soffice (LibreOffice) is available in the container (Dockerfile installs it).
  • The endpoint performs atomic replace: the resulting .docx replaces or is created next to the original file, and the original is removed when delete_original is true.
  • This service does no auth; in production, restrict access to trusted networks or add auth/proxy.