OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched
docker pull jbarlow83/ocrmypdf-alpine
docker run -d --name ocrmypdf --restart always jbarlow83/ocrmypdf-alpine
podman run -d --name ocrmypdf --restart always jbarlow83/ocrmypdf-alpine
skopeo inspect docker://docker.io/jbarlow83/ocrmypdf-alpine:latest
oras pull jbarlow83/ocrmypdf-alpine
docker compose up -d
# SPDX-FileCopyrightText: 2022 James R. Barlow
# SPDX-License-Identifier: MIT
---
version: "3.3"
services:
ocrmypdf:
restart: always
container_name: ocrmypdf
image: jbarlow83/ocrmypdf-alpine
volumes:
- "/media/scan:/input"
- "/mnt/scan:/output"
environment:
- OCR_OUTPUT_DIRECTORY_YEAR_MONTH=0
# The image runs as the non-root "app" user (uid 1000) by default. The
# correct value here depends on your runtime, so that the watcher can write
# to the /output bind mount and the files end up owned by you:
# rootful Docker -> your host uid:gid
# rootless Docker -> "0:0" (container root maps to your host user)
# Podman -> your host uid:gid, plus `userns_mode: "keep-id"`
# See docs/docker.md ("Bind-mounted volumes") for the reasoning.
user: "<SET TO YOUR USER ID>:<SET TO YOUR GROUP ID>"
entrypoint: python3
command: /app/watcher.py