Docker run reported an error. the file path does not exist.

  docker, question

I am Xiao Bai who has just come into contact with docker. Today I am trying to build a tomcat image with dockerfile.
Results reported an error when docker run was mirrored.

/bin/sh: /usr/local/tomcat/bin/ No such file or directory

The contents of my dockerfile file are as follows: please give some advice. Thank you

# tomcat
 # VERSION       1.0
 # Use centos as the reference mirror
 FROM centos
 # Use root
 USER root
 ADD ./jdk-8u111-linux-x64.rpm /root
 ADD ./tomcat /usr/local
 #set environment variable
 ENV JAVA_HOME /root/jdk-8u111-linux-x64
 # Set Tomcat7 to run initially and SSH terminal server to run as background
 ENTRYPOINT /usr/local/tomcat/bin/ && tail -F /usr/local/tomcat/logs/catalina.out
 # Open 8080 Port to External (Other Containers)

Having a dockerfile does not necessarily mean having a mirror file. You can passdocker build -t ${tagName} .To build the image file. Then create the CONTAINER through the mirror file, and finally your container can run. For your current example, you can complete the above process by the following command:

sudo docker build -t mytomcat .
 Sudokkerrun-p8080: 8080 mytomcat//here you can add specific parameters