Repository navigation
Add Docker support for frontend application deployment - #213
Open
KishanNigam wants to merge 3 commits into
Open
KishanNigam wants to merge 3 commits into
KishanNigam wants to merge 3 commits into
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.
Related Issue
Added Docker support to simplify application deployment and environment consistency.
Closes: #
Describe the changes you've made
Added a Dockerfile for containerizing the React frontend application.
Configured the Docker image to use Node.js 14 as the base image.
Added application working directory setup inside the container.
Added dependency installation using
npm install.Configured application startup using
npm start.Verified successful Docker image build and deployment on AWS EC2.
Confirmed application accessibility on port 3000.
Type of change
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Code style update (formatting, local variables)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
This change requires a documentation update
How Has This Been Tested?
Built the Docker image using:
Ran the container using:
Verified that the React application starts successfully.
Verified that the application is accessible through EC2 public IP on port 3000.
Confirmed that application changes are reflected after rebuilding and redeploying the container.
Checklist:
My code follows the guidelines of this project.
I have performed a self-review of my own code.
I have commented my code, particularly wherever it was hard to understand.
I have made corresponding changes to the documentation.
My changes generate no new warnings.
I have added tests that prove my fix is effective or that my feature works.
Any dependent changes have been merged and published in downstream modules.
Screenshots
Original | Updated -- | -- Application running without Docker support | Application successfully running inside Docker container on port 3000