fix: use upstream Dockerfile build to fix file uploads#3
Merged
Conversation
Switch CI to build from Dockerfile with target: node — the same build procedure upstream uses for ghcr.io/danny-avila/librechat. This gives us USER node with pre-created writable dirs (/app/uploads, /app/logs, etc.) matching the upstream image exactly. Revert Dockerfile.multi to match upstream (no fork-specific changes). Co-Authored-By: Claude Opus 4.6 <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
Dockerfile.multitoDockerfilewithtarget: node— matching the upstream build procedure forghcr.io/danny-avila/librechatDockerfile.multito match upstream exactly (removes PR fix: create logs dir and run as non-root in Dockerfile.multi #2 changes)Context
PR #2 added
USER nodetoDockerfile.multito fix/app/api/logsEACCES. ButDockerfile.multidoesn't pre-create/app/uploads, causing file upload failures.The upstream publishes two images from two Dockerfiles:
librechat→Dockerfile(USER node, pre-creates all writable dirs)librechat-api→Dockerfile.multi(runs as root, no dir setup)We were previously running the
librechatvariant. This PR aligns our build to use the sameDockerfileso we get an identical image.Test plan
🤖 Generated with Claude Code