mirror of
https://github.com/microsoft/markitdown.git
synced 2025-06-26 22:00:21 +00:00

* Have the MarkItdown MCP server read MARKITDOWN_ENABLE_PLUGINS from os.environ * Update the Dockerfile to enable plugins. No puglins are installed by default.
29 lines
570 B
Docker
29 lines
570 B
Docker
FROM python:3.13-slim-bullseye
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV EXIFTOOL_PATH=/usr/bin/exiftool
|
|
ENV FFMPEG_PATH=/usr/bin/ffmpeg
|
|
ENV MARKITDOWN_ENABLE_PLUGINS=True
|
|
|
|
# Runtime dependency
|
|
# NOTE: Add any additional MarkItDown plugins here
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ffmpeg \
|
|
exiftool
|
|
|
|
# Cleanup
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY . /app
|
|
RUN pip --no-cache-dir install /app
|
|
|
|
WORKDIR /workdir
|
|
|
|
# Default USERID and GROUPID
|
|
ARG USERID=nobody
|
|
ARG GROUPID=nogroup
|
|
|
|
USER $USERID:$GROUPID
|
|
|
|
ENTRYPOINT [ "markitdown-mcp" ]
|