- Builder: Create directories with 755 instead of 700 within ADD instruction

This commit is contained in:
Guillaume J. Charmes 2013-07-26 14:57:16 -07:00
parent a438d505ba
commit b15cfd3530
No known key found for this signature in database
GPG Key ID: B33E4642CB6E3FF3
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ func (b *buildFile) addContext(container *Container, orig, dest string) error {
} else if err := UntarPath(origPath, destPath); err != nil {
utils.Debugf("Couldn't untar %s to %s: %s", origPath, destPath, err)
// If that fails, just copy it as a regular file
if err := os.MkdirAll(path.Dir(destPath), 0700); err != nil {
if err := os.MkdirAll(path.Dir(destPath), 0755); err != nil {
return err
}
if err := CopyWithTar(origPath, destPath); err != nil {