Open
Conversation
…e fixes Major improvements: - Migrate base image from Debian to Alpine Linux 3.20 (3.6x smaller, 68% fewer CVEs) - Implement Apache-native privilege dropping (workers run as PUID:PGID non-root) - Fix file ownership timing (chown after all git operations) - Fix Apache config syntax (printf with proper newlines) - Improve git operations (git reset --hard + pull, idempotent submodule handling) - Add multi-arch support (linux/amd64, linux/arm64) with QEMU/buildx setup Security enhancements: - Apache worker processes run as non-root (PUID/PGID) - Proper file permissions for htdocs and logs directories - Minimal package installation (git, jq, su-exec only) - Add .dockerignore to prevent sensitive files in build context Repository updates: - Update from 5etools-mirror-2 to mirror-3 repositories - Update image references to ghcr.io/sakujakira/5etools-docker Documentation: - Add CLAUDE.md with comprehensive implementation details and verification checklist - Add README comparison section with Docker Scout CVE data - Add security section documenting privilege separation - Add AI-assisted development disclaimer - Update PUID/PGID documentation with runtime behavior Testing: - All changes verified with local builds and runtime testing - Apache config syntax validated - File ownership confirmed for custom PUID/PGID - Healthcheck verified Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR migrates the project from Debian to Alpine Linux with significant improvements in security, size, and maintainability.
Key Improvements
Image Optimization:
Security Enhancements:
.dockerignoreprevents sensitive files in build contextBug Fixes:
Infrastructure:
Documentation:
Testing
All changes have been verified with:
httpd -t)Breaking Changes
None. The container interface remains the same with backward-compatible environment variables.
Migration Notes
Users can simply pull the new image - no configuration changes required. Existing volumes will be updated on first run.
🤖 Generated with assistance from Claude Code