Enhance Vite Configuration and Add Docker Support #143
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.
Type
enhancement, other
Description
5.0.10and switched to@vitejs/plugin-react-swcfor better performance and compatibility.0.0.0.0and port3000.Dockerfileanddocker-compose.ymlfor containerization and orchestration.startscript inpackage.jsonto use the--hostflag for compatibility with Docker.@swc/cliand@swc/corefor SWC support.PR changes walkthrough
4 files
vite.config.js
vite.config.js
- Configured the server to run on
- Adjusted the order of
**- Updated the Vite configuration to use
@vitejs/plugin-react-swcinstead of@vitejs/plugin-react.host
0.0.0.0and port3000.plugins, moving
reactRefreshto the end of the pluginsarray.**
package.json
package.json
- Replaced
- Added
- Modified
**- Upgraded
viteto version5.0.10andvite-plugin-svgrto version
4.2.0.@vitejs/plugin-reactwith@vitejs/plugin-react-swcversion3.5.0.@swc/cliand@swc/coretodevDependencies.the
startscript to include the--hostflag.**Dockerfile
Dockerfile
- Exposed port
**- Added a
Dockerfileto containerize the application.Set up a multi-stage build process to install dependencies
and copy source code.
3000and specifiedthe command to run the application.**
docker-compose.yml
docker-compose.yml
- Configured the service to
**- Added a
docker-compose.ymlfile to define and run theapplication as a Docker service.
build the Docker image, map port
3000, and use a customnetwork.**
1 files
README.md
README.md
- Updated the README with instructions on how to run the
application using Docker Compose.