-
Notifications
You must be signed in to change notification settings - Fork 27
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
Embed serve
as default command to run the server container
#947
Embed serve
as default command to run the server container
#947
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you specify the CMD
instead of appending this to ENTRYPOINT
, you'll get the default behavior we want but still allow people to specify other commands when starting the container. See https://docs.docker.com/reference/dockerfile/#cmd
Also, I /think/ you could do this in the final-stage
layer so that you don't have to repeat it across every single one of the separated images
@brianhlin I ended up doing I didn't think of a way to put |
I think this limits your flexibility a bit too much, though I'll admit that I'm not too familiar with each host's commands other than
Yeah, that's one benefit of putting the |
Oops. This is what I did lol. I meant that if I only put |
That makes sense. Will do! |
OK so I figured that if I have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK so I figured that if I have CMD set prior to ENTRYPOINT
Ah bummer! This LGTM, though
Closes #945