Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor build-and-push Docker image workflow
This commit refactors the build-and-push Docker image workflow in order to improve code readability and maintainability. Specifically, it modifies the YAML file to set up environment variables, define job steps, configure caching for Docker layers, and enable BuildKit with QEMU. The changes include: - Renaming the workflow file to "docker-build.yml" - Setting the workflow name as "Build and Push Docker Image" - Modifying the "runs-on" and "strategy" sections to use dynamic values - Adding caching for Docker layers to improve build performance - Enabling BuildKit with QEMU for compatibility across platforms - Adjusting the "with" section of various steps to reference environment variables - Updating the Docker build and push action with platform specifications Additionally, the Dockerfile is modified to install npm with a `maxsockets` parameter of 1, which limits the number of concurrent network requests during package installation.
- Loading branch information