qdrant-web-ui icon indicating copy to clipboard operation
qdrant-web-ui copied to clipboard

Enhance Vite Configuration and Add Docker Support

Open KennyDizi opened this issue 1 year ago • 0 comments

Type

enhancement, other


Description

  • Updated Vite to version 5.0.10 and switched to @vitejs/plugin-react-swc for better performance and compatibility.
  • Adjusted Vite server configuration to listen on host 0.0.0.0 and port 3000.
  • Added Docker support with a Dockerfile and docker-compose.yml for containerization and orchestration.
  • Updated the start script in package.json to use the --host flag for compatibility with Docker.
  • Included new development dependencies @swc/cli and @swc/core for SWC support.
  • Updated the README with Docker Compose instructions.

PR changes walkthrough

Relevant files                                                                                                                                 
Enhancement
4 files
vite.config.js                                                                                           
    vite.config.js

    **- Updated the Vite configuration to use
    @vitejs/plugin-react-swc instead of
    @vitejs/plugin-react.

    • Configured the server to run on
      host 0.0.0.0 and port 3000.
    • Adjusted the order of
      plugins, moving reactRefresh to the end of the plugins
      array.**
+6/-2
package.json                                                                                               
    package.json

    **- Upgraded vite to version 5.0.10 and vite-plugin-svgr
    to version 4.2.0.

    • Replaced @vitejs/plugin-react with
      @vitejs/plugin-react-swc version 3.5.0.
    • Added
      @swc/cli and @swc/core to devDependencies.
    • Modified
      the start script to include the --host flag.**
+6/-4
Dockerfile                                                                                                   
    Dockerfile

    **- Added a Dockerfile to containerize the application.


    • Set up a multi-stage build process to install dependencies
      and copy source code.
    • Exposed port 3000 and specified
      the command to run the application.**
+21/-0
docker-compose.yml                                                                                   
    docker-compose.yml

    **- Added a docker-compose.yml file to define and run the
    application as a Docker service.

    • Configured the service to
      build the Docker image, map port 3000, and use a custom
      network.**
+13/-0
Documentation
1 files
README.md                                                                                                     
    README.md

    - Updated the README with instructions on how to run the
    application using Docker Compose.

+6/-0

KennyDizi avatar Jan 01 '24 12:01 KennyDizi