DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to parse documents in Docker without local dependencies with Unstructured

Use the prebuilt image so poppler, tesseract and LibreOffice come preinstalled.

Short answer: Pull the image with docker pull downloads.unstructured.io/unstructured-io/unstructured:latest; then create the container with docker run -dt --name unstructured downloads.unstructured.io/unstructured-io/unstructured:latest; open a shell with docker exec -it unstructured bash and start python3. All steps.

Who it is forA developer on a machine where installing system packages is painful.

The problemNative dependencies for PDFs, images and Office files are hard to install consistently.

The outcomeA running container with a Python shell where the partition functions work.

What you need first

  • Python with pip; `pip install "unstructured[all-docs]"` for every document type
  • System packages as needed: libmagic-dev, poppler-utils, tesseract-ocr and libreoffice
  • Or Docker, to use the prebuilt image instead of installing dependencies

Steps

  1. Pull the image with docker pull downloads.unstructured.io/unstructured-io/unstructured:latest
  2. Create the container with docker run -dt --name unstructured downloads.unstructured.io/unstructured-io/unstructured:latest
  3. Open a shell with docker exec -it unstructured bash and start python3
  4. Try partition_pdf on example-docs/layout-parser-paper-fast.pdf and partition_text on example-docs/fake-text.txt

Prompt for your agent

Using Unstructured-IO/unstructured, start the Docker image with `docker run -dt --name unstructured downloads.unstructured.io/unstructured-io/unstructured:latest`, copy <my PDF> in, run partition_pdf on it, and show the first ten elements.

Caveat. Images are multi-platform; pass `--platform linux/amd64` to docker pull if you need a specific architecture.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for Unstructured-IO/unstructured and "Parse documents in Docker without local dependencies"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer