Flatten layout: move py_docx files into src; update imports and Dockerfile

This commit is contained in:
2026-06-13 15:53:18 +00:00
parent af8f6bf2e1
commit fc58fd59ac
7 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -41,12 +41,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Copy project metadata and source before installing
COPY pyproject.toml ./
COPY src/py_docx ./src/py_docx
COPY src ./src
# Install Python dependencies (including this package)
RUN pip install --upgrade pip && pip install .
# Ensure py_docx is importable at runtime
# Ensure modules in src are importable at runtime
ENV PYTHONPATH="/app/src"
# Create runtime dirs
@@ -67,7 +67,7 @@ EXPOSE 3000
# Health check (ensure module is importable)
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD python -c "import py_docx.server; print('ok')" || exit 1
CMD python -c "from server import main; print('ok')" || exit 1
# Default: Streamable HTTP for OpenWebUI MCP
ENTRYPOINT ["python", "-m", "py_docx.server"]
ENTRYPOINT ["python", "-m", "server"]