-
Notifications
You must be signed in to change notification settings - Fork 345
Conversation
theia-docker/Dockerfile
Outdated
@@ -30,5 +30,8 @@ COPY --from=0 --chown=theia:theia /home/theia /home/theia | |||
EXPOSE 3000 | |||
ENV SHELL /bin/bash | |||
ENV USE_LOCAL_GIT true | |||
ENV TINI_VERSION v0.18.0 | |||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini | |||
RUN chmod +x /tini |
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.
I got a permission issue at first. Got it working with a little tweak, so that the theia
user has execute permission as well:
RUN chmod 555 /tini
theia-docker/Dockerfile
Outdated
@@ -30,5 +30,8 @@ COPY --from=0 --chown=theia:theia /home/theia /home/theia | |||
EXPOSE 3000 | |||
ENV SHELL /bin/bash | |||
ENV USE_LOCAL_GIT true | |||
ENV TINI_VERSION v0.18.0 | |||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini |
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.
I got a runtime exception when running tini
from the entrypoint. Maybe the basic Ubuntu image is missing some dynamic library that's required? It worked with the statically linked version:
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /tini
Hi @tom-shan , Thanks for this PR. Looking at Here's an interesting discussion about whether to explicitly use So have you considered a documentation update instead of adding P.S: Node.js suggests using either |
I agree with you. Adding |
@tom-shan would you care to submit an updated PR that documents the use of the |
I just search the entire repo and modify these commands of |
Up-to you if you think a mention of the reason why |
Aha! |
fix #195 Signed-off-by: tom-shan <swt0008411@163.com>
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.
LGTM, thanks for the contribution @tom-shan
fix #195
Signed-off-by: tom-shan swt0008411@163.com