"Command" in Configure Dockerfile does not work

Hello,

On my local environment, I can run a docker-compose.yml with this command:

command: python main.py --batch-size 500 --view-fetch-size 11000

But on Koyeb, I can’t work any command with these configuration:

Application exited with code 127. This usually indicates that the command used to launch the application cannot be found. Check that the command used to launch your application is correct.

ok!

/koyeb-entrypoint.sh: exec: line 28: python main.py --batch-size 500 --view-fetch-size 11000: not found

Hi @Ozgur_Isik_Damar,

Yeah, the docs here are not perfect here. Try this one:

["python", "main.py", "--batch-size", "500", "--view-fetch-size", "11000"]

Hi @Lukasz_Oles,

Unfortunately, it didn’t work either.

/koyeb-entrypoint.sh: exec: line 28: [“python”, “main.py”, “–batch-size”, “500”, “–view-fetch-size”, “11000”]: not found

Application exited with code 127. This usually indicates that the command used to launch the application cannot be found. Check that the command used to launch your application is correct.

I also tried Command Args instead of Command,but it didn’t work either.

I’m sorry. I always have to double-check what to put where, so:
In “Command”, put: python
In “Command Args”, put: ["main.py", "--batch-size", "500", "--view-fetch-size", "11000"]
For more details please check this post Dockerfile Args is not working - #8 by Julien_Castets1

Hi, unfortunately it still doesn’t work

Application exited with code 127. This usually indicates that the command used to launch the application cannot be found. Check that the command used to launch your application is correct.
Waiting for docker daemon to start...
...
...
ok!
/koyeb-entrypoint.sh: exec: line 28: python: not found
Waiting for docker daemon to start...
...
...
...
...
...
ok!

I have these commands on my Dockerfile and docker-compose.yml while deploying to Koyeb:


CMD ["python", "main.py"]

docker-compose.yml

command: python main.py --batch-size 1000 --view-fetch-size 10000

Also before opening this topic, I already checked the link you provided but it didn’t help