Update Dockerfile handling to keep parser directives at the top
Signed-off-by: CrazyMax <google@crazymax.dev>
This commit is contained in:
2
main.go
2
main.go
@@ -296,6 +296,8 @@ var head = []string{
|
||||
"# encoding:", // Ruby encoding
|
||||
"# frozen_string_literal:", // Ruby interpreter instruction
|
||||
"<?php", // PHP opening tag
|
||||
"# escape", // Dockerfile directive https://docs.docker.com/engine/reference/builder/#parser-directives
|
||||
"# syntax", // Dockerfile directive https://docs.docker.com/engine/reference/builder/#parser-directives
|
||||
}
|
||||
|
||||
func hashBang(b []byte) []byte {
|
||||
|
||||
Reference in New Issue
Block a user