ERROR: Service ‘web’ failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder105213807/entrypoint.sh: no such file or directory

I want to create a RoR app using docker-compose. while running docker-compose up it completes 8 steps but struck after that.

Building web

Step 1/13 : FROM ruby:2.5.0
 ---> 213a086149f6
Step 2/13 : RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
 ---> Using cache
 ---> ca28900c3d61
Step 3/13 : RUN mkdir /noteapp
 ---> Using cache
 ---> 6d8f6d2662b8
Step 4/13 : WORKDIR /noteapp
 ---> Using cache
 ---> 1dd8c5e275e1
Step 5/13 : COPY Gemfile /noteapp/Gemfile
 ---> Using cache
 ---> a3be515c8ca8
Step 6/13 : COPY Gemfile.lock /noteapp/Gemfile.lock
 ---> Using cache
 ---> fc0195867c0e
Step 7/13 : RUN  bundle install
 ---> Using cache
 ---> a334309797f9
Step 8/13 : COPY . /noteapp
 ---> Using cache
 ---> 4df587fba2a2
Step 9/13 : COPY entrypoint.sh /usr/bin/
ERROR: Service 'web' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder105213807/entrypoint.sh: no such file or directory

Source: StackOverflow