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

Use CMD alongside ENTRYPOINT in the Dockerfile #3366

Merged
merged 1 commit into from
Apr 15, 2020

Conversation

pranasziaukas
Copy link
Contributor

This allows for runtime customization, see #3362.

This allows for runtime customization, see Koenkk#3362.
@branch-switcher branch-switcher bot changed the base branch from master to dev April 15, 2020 07:33
@branch-switcher
Copy link

Hello @pranasziaukas. The base branch of this pull request has been updated to the dev branch. Please revisit the changes and make sure that there are no conflicts with the new base branch. Thank you for your contributions.

@Koenkk
Copy link
Owner

Koenkk commented Apr 15, 2020

Thanks!

@Koenkk Koenkk merged commit d193673 into Koenkk:dev Apr 15, 2020
@pranasziaukas pranasziaukas deleted the docker-entrypoint-customization branch April 16, 2020 06:43
Koenkk added a commit that referenced this pull request Apr 18, 2020
Koenkk added a commit that referenced this pull request Apr 18, 2020
@Koenkk
Copy link
Owner

Koenkk commented Apr 18, 2020

Unfortunately I had to revert this PR because it will break Portainer setups. Thinking a bit better about the CMD should be used to add additional flags to the run command, not entirely replace it.

Please let me know your use case then we can see if we can figure out something.

@fnxpt
Copy link

fnxpt commented Apr 22, 2020

Another option is to have a default command on run.sh. if $@ is empty we can set npm start as default

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

Successfully merging this pull request may close these issues.

3 participants