add --target option for builder configuration

This commit is contained in:
Jason Nochlin
2024-04-27 10:24:34 -06:00
parent f48f528043
commit 947be0877f
3 changed files with 17 additions and 2 deletions

View File

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