Docker-compose says can’t open file – no file on directory but the file exist

So this problem occurs when I have created a copy of a file and tried to run it. Say, I had a file name and I tried to make a copy and run it in I made the necessary changes on docker-compose file for the dev server but when I try to run it, it says, can’t open file, no such file or directory! So, I tried docker exec command to run the file from within the container to see whats wrong, but the problem still persist!

Expected behavior

The smooth building of docker container

Actual behavior

/usr/local/bin/python: can’t open file ‘’: [Errno 2] No such file or directory

Additional Information

snippet of docker-compose-dev file

version: "3"
      context: project_one/
      - "redis_cache"
      - REDIS_HOST=redis_cache
      - REDIS_PORT=5789
      - /home/$USER/.raster/:/app/_images/
      - "8000"
      - middleware
    restart: always
    command: ["python", ""]

Command to run:

sudo docker-compose -f "docker-compose-dev.yml" up --build --remove-orphans

Build information:

cache_manager_1          | [2020-04-07 07:40:25 +0000] [9] [INFO] Starting worker [9]
ban_manager_1            | [2020-04-07 07:40:25 +0000] [9] [INFO] Starting worker [9]
middleware_1  | [2020-04-07 07:40:25 +0000] [1] [INFO] Goin' Fast @
middleware_1  | /usr/local/bin/python: can't open file '': [Errno 2] No such file or directory

Help is much needed 🙁

Source: StackOverflow