Docker for Rails Developers: .env expected to be a directory

On page 78, the book suggests to create a directory “.env” , but when build my docker file, it complains that .env is a directory (which is correct - I just created it as such), but docker thinks that .env should be a file (and exits with that error msg). Renaming the directory (to “.env_directory” or something like that) and updating the yml files to reflect that change solves the issue.