1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/builder/dockerignore
Simon Ferquel 1cde87c43a Fix behavior of absolute paths in .dockerignore
According to documentation (https://docs.docker.com/engine/reference/builder/#dockerignore-file), absolute paths like `/foo/bar` should have the same effect as `foo/bar`. This is not the case today.

This fix normalize paths when reading the .dockerignore file by removing
leading slashes.

Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
2017-03-31 10:43:59 +02:00
..
dockerignore.go Fix behavior of absolute paths in .dockerignore 2017-03-31 10:43:59 +02:00
dockerignore_test.go Fix behavior of absolute paths in .dockerignore 2017-03-31 10:43:59 +02:00