mirror of
https://github.com/mudler/luet.git
synced 2025-09-11 20:19:30 +00:00
⚙️ Add ability to build from Dockerfiles directly
This commit is contained in:
committed by
mudler
parent
4e2a2adfc1
commit
e70a543f42
@@ -35,12 +35,14 @@ const (
|
||||
CompilerDefinitionFile = "build.yaml"
|
||||
)
|
||||
|
||||
var DefaultCompilerParsers = []FileParser{
|
||||
BuildCollectionParser,
|
||||
BuildDefinitionParser,
|
||||
}
|
||||
|
||||
func NewCompilerRecipe(d types.PackageDatabase, fp ...FileParser) Builder {
|
||||
if len(fp) == 0 {
|
||||
fp = []FileParser{
|
||||
BuildCollectionParser,
|
||||
BuildDefinitionParser,
|
||||
}
|
||||
fp = DefaultCompilerParsers
|
||||
}
|
||||
return &CompilerRecipe{Recipe: Recipe{Database: d}, fileParsers: fp}
|
||||
}
|
||||
|
Reference in New Issue
Block a user