Added ENTRYPOINT to omit full command at launch.#170
Conversation
Moving `code-server` to ENTRYPOINT will allow omitting it from the CLI launch.
nhooyr
left a comment
There was a problem hiding this comment.
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-serverat 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.