Does the docker add command src have to be a file?

  docker, question

I wrote a dockerfile locally and reported an error when running the container.
Hint/bin/sh:/root/Tomcat/bin/startup.sh: nosuchfile or directory

I decompressed a tomcat locally and added it to the container through the ADD command.

ADD ./tomcat /root

Does the docker add command src have to be a file? Can’t it be a document?

The first parameter of the ADD command can be a file, a folder, even a URL/Git address, etc. it is still very flexible.