Merge pull request #786 from hundredwatt/add-target-option-to-builder

Add --target option to Builder to support multi-stage Docker builds
This commit is contained in:
Donal McBreen
2024-05-10 15:15:31 +01:00
committed by GitHub
3 changed files with 17 additions and 2 deletions

View File

@@ -39,6 +39,10 @@ class Kamal::Configuration::Builder
@options["dockerfile"] || "Dockerfile"
end
def target
@options["target"]
end
def context
@options["context"] || (git_archive? ? "-" : ".")
end