Skip to content

Instantly share code, notes, and snippets.

@ppiotrow
Created April 5, 2020 14:58
Show Gist options
  • Save ppiotrow/e6f3aae9368983579ed16a1f74fb0bbc to your computer and use it in GitHub Desktop.
Save ppiotrow/e6f3aae9368983579ed16a1f74fb0bbc to your computer and use it in GitHub Desktop.
SBT docker native packager - using multistage build cache
dockerUpdateLatest := true,
dockerAutoremoveMultiStageIntermediateImages := false,
dockerBuildOptions := dockerBuildOptions.value ++ Seq(
"--cache-from",
dockerAlias.value.withTag(Some("stage0")).toString,
"--cache-from",
dockerAlias.value.withTag(Some("latest")).toString)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment