From 68766646b05137c502964ac228c83a28598e0cbb Mon Sep 17 00:00:00 2001 From: Remy Suen Date: Fri, 27 Oct 2017 15:58:06 +0900 Subject: [PATCH] WIP #189 Add a Dockerfile to build the language server Signed-off-by: Remy Suen --- .travis.yml | 5 +++++ Dockerfile | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/.travis.yml b/.travis.yml index 4b9a069..51c99c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,9 @@ os: sudo: false +services: + - docker + node_js: - "8" - "6" @@ -36,3 +39,5 @@ script: after_success: - npm run coverage - npm pack + - docker build -t rcjsuen/docker-langserver . + - docker run rcjsuen/docker-langserver --help diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..100fc6e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM node:alpine +COPY lib /docker-langserver/lib +COPY bin /docker-langserver/bin +ENTRYPOINT [ "/docker-langserver/bin/docker-langserver" ]