Support COPY --chown flag (Closes: #9)

This commit is contained in:
xanonid
2020-02-03 14:56:23 -08:00
committed by Tejal Desai
parent 28aa374266
commit e3b5a7b85d
6 changed files with 64 additions and 32 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ func resolveEnvironmentBuildArgs(arguments []string, resolver func(string) strin
// copy Dockerfile to /kaniko/Dockerfile so that if it's specified in the .dockerignore
// it won't be copied into the image
func copyDockerfile() error {
if _, err := util.CopyFile(opts.DockerfilePath, constants.DockerfilePath, ""); err != nil {
if _, err := util.CopyFile(opts.DockerfilePath, constants.DockerfilePath, "", -1, -1); err != nil {
return errors.Wrap(err, "copying dockerfile")
}
opts.DockerfilePath = constants.DockerfilePath