Feature Proposal : adding Docker support for running json-server#1746
Open
Omar-Tnt04 wants to merge 1 commit intotypicode:mainfrom
Open
Feature Proposal : adding Docker support for running json-server#1746Omar-Tnt04 wants to merge 1 commit intotypicode:mainfrom
Omar-Tnt04 wants to merge 1 commit intotypicode: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.
Summary
Add Docker support so json-server can be built and run without requiring a local Node.js setup.
What Changed
Dockerfile.dockerignoreWhy
This improves developer experience by making it easier to run the project in a consistent containerized environment.
It is also helpful for users on platforms where local build scripts may behave differently.
How to test
docker build -t json-server . docker run --rm -p 3000:3000 json-server