Update Dockerfile handling to keep parser directives at the top

Signed-off-by: CrazyMax <google@crazymax.dev>
This commit is contained in:
CrazyMax
2021-08-09 21:04:55 +02:00
committed by Will Norris
parent 5be3beef79
commit 99ebc9c9db
8 changed files with 46 additions and 0 deletions

3
testdata/initial/file2.Dockerfile vendored Normal file
View File

@@ -0,0 +1,3 @@
# syntax=docker/dockerfile:1.3
FROM scratch
CMD ["echo", "hello world"]

4
testdata/initial/file3.Dockerfile vendored Normal file
View File

@@ -0,0 +1,4 @@
# escape=`
FROM microsoft/nanoserver
COPY testfile.txt c:\
RUN dir c:\