You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current order of steps in the Dockerfile has some expensive infrequent tasks (e.g., pip install -q .) occurring after more frequently modified file are copied (e.g., src). The breaks layer caching and causes image builds to take longer than necessary.
Steps to reproduce:
Run ./script/server
Modify a file in ./src
Run ./script/update
Expected behavior:
The step RUN pip install -q . is cached
What I got instead:
The step RUN pip install -q . needs to execute
The text was updated successfully, but these errors were encountered:
Description:
The current order of steps in the Dockerfile has some expensive infrequent tasks (e.g.,
pip install -q .
) occurring after more frequently modified file are copied (e.g.,src
). The breaks layer caching and causes image builds to take longer than necessary.Steps to reproduce:
./script/server
./src
./script/update
Expected behavior:
The step
RUN pip install -q .
is cachedWhat I got instead:
The step
RUN pip install -q .
needs to executeThe text was updated successfully, but these errors were encountered: