Add lean multi-stage Dockerfile and GitHub Actions workflow#128
Open
ricardoalcantara wants to merge 1 commit intotanabe:mainfrom
Open
Add lean multi-stage Dockerfile and GitHub Actions workflow#128ricardoalcantara wants to merge 1 commit intotanabe:mainfrom
ricardoalcantara wants to merge 1 commit intotanabe:mainfrom
Conversation
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.
I'd like to contribute with Docker support to this project. My company has a policy that restricts employees from pasting documents on external websites, so being able to self-host the tool via a Docker image makes it much more accessible in those environments — no network dependency, no data leaving the machine.
What's included
Dockerfile— multi-stage build to keep the final image lean (~25–40 MB):node:20-alpine) — installs dependencies and runsvite buildnginx:alpine) — copies only thedist/folder with a minimal SPA-friendly nginx config.github/workflows/docker.yml— builds and pushes the image to GHCR on every push tomainUsage
docker build -t markdown-live-preview . docker run -p 8080:80 markdown-live-previewFeel free to close this if it doesn't fit the project's goals.