This name is not mentioned in the documentation you shared. Please, share the Dockerfile that you used to build the base image unless it contains something that you can’t share. Sharing only a documentation would require us to check it, understand it and figure out what you did differently when we might not even know the tool that you are running in the container.
Also to avoid misunderstanding, please, format your codes as described in the bellow post:
How do you know that the file is not there? If you can share commands that actually shows what command indicated the file was missing, that can help us a lot to help you faster and ask better questions. Later you mentioned the “ls” command, but we all make mistakes, so the fact that you used “ls” doesn’t guarantee you used it correctly.
Can I ask why you suspected the reason could have been a dockerignore file when you don’t have one? Only to make sure we understand eachother correctly. Note that the filename would be .dockerignore and not .dockerignore-file or anything like that. If something created a .dockerignore file it is possible that you don’t see it because those files beginning with a dot are hidden by default.
However you also mentioned that
which indicates that indeed you don’t have a .dockerignore file or doesn’t match the files that you want to copy.
I also need to ask you to share the output of the following commands as it is very important to know what kind of Docker installation you are using.
docker info
docker version
You could also check if you have any ONBUILD instruction in the Dockerfile of the base image so it runs after your instructions and can remove the copied files.
Was this the exact same command that you run? Didn’t you use any mounted folder?
Another reason of missing files could be that a command runs in your entrypoint removing the copied files. To help you with that, again, we need more information how you have built the base image exactly.
By the way, you chose the “Docker Hub” category and the question has nothing to do with Docker Hub, so based on the output of docker info we can move the topic to the correct category.