ow-league-tokens
ow-league-tokens copied to clipboard
There are entrypoints in both Dockerfile and docker-compose.yml
Im kinda worried there are 2 entrypoints in different files. Isn't that a problem? Won't 2 different bots be started at the same time when using docker-compose?
First i edited docker-compose only and started script via docker-compose, but saw unedited Dockerfile command in log `CMD [ "python", "./main.py", "nomenu", "--owl", "--owc", "--ids", "id1", "and so on" ]
It seems it is executed as well.
You can overwrite an entrypoint coming from the Dockerfile in your docker-compose.yml file. I did it this way to support both docker-compose.yml and just starting the container via docker normally. This is probably not best practice though. If anyone wants to state their opinion on doing it like this it would be much appreciated :) So: this doesn't cause an issue as it only uses the entrypoint specified in the compose file.