Skip to content

Luke/update dockerfile#4192

Merged
luke-kucing merged 20 commits intomainfrom
luke/update-dockerfile
Jan 20, 2026
Merged

Luke/update dockerfile#4192
luke-kucing merged 20 commits intomainfrom
luke/update-dockerfile

Conversation

@luke-kucing
Copy link
Contributor

No description provided.

luke-kucing and others added 14 commits January 14, 2026 16:14
- Switch base image from quay.io/unstructured-io to cgr.dev/chainguard
- Install required system packages including libreoffice, poppler, tesseract
- Add libreoffice symlinks and initialization script for headless mode
- Create notebook-user with explicit UID/GID for container security

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The RUN command was failing because it looked for the script in WORKDIR
(/app) while the script was copied to $HOME (/home/notebook-user/).
Also fixes legacy ENV format warnings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The notebook-user is created after this RUN command, so the chown fails.
Also removed duplicate git install (already installed above).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The libreoffice config must be created as the notebook-user, not root.
Running as root causes soffice to hang when called later by the
non-root user.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Clone tessdata and tessconfigs repos to populate /usr/local/share/tessdata
with the trained models tesseract needs for OCR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
luke-kucing and others added 4 commits January 16, 2026 15:00
Co-authored-by: qued <64741807+qued@users.noreply.github.com>
trailing new line
@luke-kucing luke-kucing requested a review from qued January 20, 2026 17:16
@luke-kucing luke-kucing enabled auto-merge January 20, 2026 19:34
Copy link
Contributor

@qued qued left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM provided CI passes

@luke-kucing luke-kucing added this pull request to the merge queue Jan 20, 2026
Merged via the queue into main with commit b70758a Jan 20, 2026
40 checks passed
@luke-kucing luke-kucing deleted the luke/update-dockerfile branch January 20, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants