Skip to content

Instantly share code, notes, and snippets.

@slemeur
Created February 20, 2018 10:57
Show Gist options
  • Select an option

  • Save slemeur/4db70bfb401871f31c6d52500287a6ee to your computer and use it in GitHub Desktop.

Select an option

Save slemeur/4db70bfb401871f31c6d52500287a6ee to your computer and use it in GitHub Desktop.
# inherit an image with node.js and npm - runtime requirements for TypeScript LS
FROM eclipse/node
# install socat
RUN sudo apt-get install socat -y && \
sudo npm install -g typescript@2.5.3 typescript-language-server@0.1.4
# run socat that listens on port 4417 with exec command that starts LS
CMD socat TCP4-LISTEN:4417,reuseaddr,fork EXEC:"typescript-language-server --stdio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment