Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance: optimize file copies in docker build #223

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TravisYeah
Copy link

All files were copied at the start of the file which makes the entire build restart which takes a long time just to redo dependencies installations. This change only copies files required for that step and waits to copy the rest until the end.

Pull Request Title

Enhance: optimize file copies in docker build

Related Issue

Description

All files were copied at the start of the file which makes the entire build restart which takes a long time just to redo dependencies installations. This change only copies files required for that step and waits to copy the rest until the end.

Type

  • Bug Fix
  • Feature Enhancement
  • Documentation Update
  • Code Refactoring
  • Other (please specify):

Proposed Changes

  • Only copy necessary files for each docker step

Screenshots / Code Snippets (if applicable)

How to Test

  1. docker-compose up
  2. Change a file that is needed for any step
  3. docker-compose build
  4. docker-compose up

Checklist

  • The code compiles successfully without any errors or warnings
  • The changes have been tested and verified
  • The documentation has been updated (if applicable)
  • The changes follow the project's coding guidelines and best practices
  • The commit messages are descriptive and follow the project's guidelines
  • All tests (if applicable) pass successfully
  • This pull request has been linked to the related issue (if applicable)

Additional Information

All files were copied at the start of the file which makes the
entire build restart which takes a long time just to redo
dependencies installations. This change only copies files required
for that step and waits to copy the rest until the end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant