Dockerfile uses Python server instead of Node.js server – clarification & optional improvement #5373
Parth-co79
started this conversation in
Ideas
Replies: 1 comment
-
|
Hey, this seems like a good discussion topic. Maybe we should take this to the official matrix channel for Sugar and have a chat with the maintainers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🐳 Dockerfile uses Python server instead of Node.js server – clarification & proposal
Summary
While exploring the Music Blocks repository, I noticed that the current Dockerfile serves the application using Python’s http.server, even though the project includes a Node.js server. I wanted to understand whether this is an intentional design choice and, if so, whether offering a Node-based alternative Docker setup would be acceptable.
Details
The repository includes a Node.js server that supports features such as proper routing and compression.
However, the existing Dockerfile uses a simple Python HTTP server, which:
Does not provide compression
Does not reflect how Music Blocks is typically served in real deployments
I understand that this may be intentional for simplicity, faster builds, or lightweight local testing, so I wanted to ask for clarification before proposing any changes.
Proposal (Optional / Non-breaking)
Instead of replacing the current behavior, one possible approach could be:
Keep the existing Dockerfile as-is for simplicity
Add an alternative Dockerfile (e.g. Dockerfile.node) that:
Uses the Node.js server
Provides closer parity with real-world deployments
This would give contributors flexibility without breaking existing workflows.
Additional Observations (for discussion)
While reviewing the codebase, I also noticed some FIXME comments related to Chrome compatibility. I have not attempted any fixes yet and wanted to check whether these are known issues where contributor help is welcome.
Questions
Is the use of Python’s http.server in the Dockerfile intentional?
Would an optional Node-based Docker setup be acceptable as a contribution?
Are the Chrome-related FIXME comments areas where new contributors can help?
I’d be happy to work on this if it aligns with the project’s goals.
Thank you for maintaining Music Blocks and for your guidance!
Beta Was this translation helpful? Give feedback.
All reactions