.dockerignore mentioned files are not ignored

The .dockerignore rules follow the filepath/#Match.

Try (for testing) Gemfile.lock instead of /Gemfile.lock.

And check that the eol (end of line) characters are unix-style, not Windows style in your .dockerignore file.

Apparently, (docker 1.10, March 2016) using rule starting with / like /xxx ( or /.*) is not well supported.

Leave a Comment