coreweave / ml-containers

MIT License
21 stars 3 forks source link

fix: Move COMMIT arg into build stage #13

Closed NavarrePratt closed 1 year ago

NavarrePratt commented 1 year ago

Adding the COMMIT ARG before the FROM causes the build to use the cache for all layers even when the kubernetes-cloud code has changed. This is because:

An ARG declared before a FROM is outside of a build stage, so it can’t be used in any instruction after a FROM

Build from this commit pulls the new code