Page MenuHomePhabricator

Improve caching in k8s example dockerfile
ClosedPublic

Authored by sashank on Fri, Oct 9, 4:34 PM.

Details

Summary

Often when working with the k8s-example-editable Dockerfile, we only want to update the repository code. this diff updates the image to copy over the repository code as the last step in the Dockerfile. this significantly speeds up the build, as it completely avoids the several pip install -e commands required for every change previously.

Test Plan

build image, change only repository code, rebuild image, verify it uses cache and builds faster

Diff Detail

Repository
R1 dagster
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.