I introduced several changes to optimize the Docker build process, enhance the CI workflow, and improve overall project consistency.
Changes made:
Modified Dockerfile:
Optimized the build process for better consistency and reliability.
Updated dependency installation and pruning steps.
Updated .github/workflows/ci.yml:
Added steps in the CI workflow to incorporate Docker build and run tests.
Modified package.json:
Added new scripts related to Docker testing.
Updated dependencies or scripts as needed for the new Docker workflow.
Added .dockerignore:
Created a new .dockerignore file to exclude unnecessary files from the Docker build context, optimizing build time and image size
Added test-docker.sh:
Created a new shell script to automate Docker build and run tests.
Testing
I have tested these changes locally. The Docker image builds successfully, and the new test script runs without errors. The updated CI workflow has been verified to work as expected.
Improve Docker build process and CI workflow
Referred Issue - #66
Description
I introduced several changes to optimize the Docker build process, enhance the CI workflow, and improve overall project consistency.
Changes made:
Modified Dockerfile:
Updated .github/workflows/ci.yml:
Modified package.json:
Added .dockerignore:
Added test-docker.sh:
Testing
I have tested these changes locally. The Docker image builds successfully, and the new test script runs without errors. The updated CI workflow has been verified to work as expected.