-
Notifications
You must be signed in to change notification settings - Fork 6k
Added ENTRYPOINT to omit full command at launch. #170
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
Conversation
Moving `code-server` to ENTRYPOINT will allow omitting it from the CLI launch.
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.
Can you modify the README.md as well to account for this.
You cannot modify the CMD instruction for now until code-server accepts .
properly. Exec form CMD
's don't expand variables.
Please leave it as it is.
I don't know where the agrument logic lives, but at least as a workaround in it to replace " . " with " $PWD " before actual submitting to binary should work. Isn't it? |
Sorry, I don't understand. Could you elaborate? Are you asking why |
I don't know why it doesn't work — didn't see the code, sorry. But replacing the " . " argument with the " $PWD " prior the arguments get worked out should do the trick. I'm sorry if I'm speaking nonsense. |
Ah looks like this was fixed to work now: #19 I will update. Thanks. |
Closes #170 Will describe in FAQ how to keep state.
Having
code-server
at the ENTRYPOINT will free the CMD line, so launching that container will no longer require writing the binary name after image name and will not confuse people anymore.