ow-league-tokens icon indicating copy to clipboard operation
ow-league-tokens copied to clipboard

There are entrypoints in both Dockerfile and docker-compose.yml

Open lansman opened this issue 2 years ago • 1 comments

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.

lansman avatar Nov 03 '22 20:11 lansman

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.

nipser avatar Dec 24 '22 12:12 nipser