Open
Conversation
Author
|
Issue #128 |
mifi
reviewed
Feb 16, 2026
There was a problem hiding this comment.
Pull request overview
Adds a multi-stage Docker build for running ezshare in a Node-based container.
Changes:
- Introduces a two-stage Dockerfile (builder + slim runner) targeting Node 20.
- Installs runtime dependencies (xvfb/ffmpeg/xsel) and adds an entrypoint to start Xvfb.
- Runs the CLI from
packages/cli/dist/index.jsand exposes port3003.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
🐳 Docker Deployment
You can run
ezshareeasily using Docker. This ensures all dependencies likeffmpegandxvfbare pre-installed and configured correctly.Prerequisites
Option 1: Using Docker Compose (Recommended)
The easiest way to run the application is with Docker Compose. This handles the build, port mapping, and volume creation automatically.
Start the application:
Access the app:
Open your browser to
http://localhost:3003.Shared Files:
Place files in the
./my-shared-datafolder (created automatically in your project root). These will appear in the application under/shared.Option 2: Manual Docker CLI
If you prefer to run the
Dockerfilemanually without Compose:Build the image:
docker build -t ezshare .Run the container:
You must map port
3003and mount a volume to/sharedfor the application to function properly.docker run -p 3003:3003 -v $(pwd)/my-shared-data:/shared ezshareConfiguration Details
3003by default./sharedto store and retrieve files.node:20-slimand includes necessary runtime tools likeffmpegfor media processing.Volume Permissions (Important)
Since the container now runs as UID 1000 (
node), the host directory mounted to/shared(defined indocker-compose.ymlas./my-shared-data) must be writable by UID 1000.If you encounter
Permission Deniederrors on Linux/Mac, run the following on the host machine to fix local folder permissions: