Skip to content
This repository was archived by the owner on Jul 28, 2022. It is now read-only.

Commit 767d0bb

Browse files
ggilmorekeegancsmith
authored andcommitted
add dockerfile for lua language server (#29)
1 parent 72b92ec commit 767d0bb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

dockerfiles/lua/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM golang:1.10-alpine
2+
WORKDIR /go/src/github.com/sourcegraph/lsp-adapter
3+
COPY . .
4+
RUN CGO_ENABLED=0 GOBIN=/usr/local/bin go install github.com/sourcegraph/lsp-adapter
5+
6+
# 👀 Add steps here to build the language server itself 👀
7+
# CMD ["echo", "🚨 This statement should be removed once you have added the logic to start up the language server! 🚨 Exiting..."]
8+
9+
FROM abaez/luarocks:lua5.1
10+
11+
RUN apk add --no-cache ca-certificates git tini
12+
13+
ENTRYPOINT ["/sbin/tini", "--"]
14+
15+
RUN luarocks install --server=http://luarocks.org/dev lua-lsp
16+
17+
COPY --from=0 /usr/local/bin/lsp-adapter /usr/local/bin
18+
EXPOSE 8080
19+
# Modify this command to connect to the language server
20+
CMD ["lsp-adapter", "--trace", "--proxyAddress=0.0.0.0:8080", "lua-lsp"]

0 commit comments

Comments
 (0)