Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lansman opened this issue Nov 3, 2022 · 1 comment
Open

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

lansman opened this issue Nov 3, 2022 · 1 comment

Comments

@lansman
Copy link

lansman commented Nov 3, 2022

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.

@nipser
Copy link
Contributor

nipser commented Dec 24, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants