-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
36 lines (28 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM williamfzc/srctx:v0.10.4
RUN apk add --no-cache graphviz curl git
COPY . /action_internal
# scip converter
RUN git clone https://github.com/sourcegraph/scip.git --depth=1 ./scip_repo && \
cd scip_repo && \
go build -o scip ./cmd/scip && \
cd .. && \
cp ./scip_repo/scip . && \
rm -rf ./scip_repo && \
chmod +x ./scip && \
scip --help
# java/kotlin/scala scip/lsif
RUN apk add openjdk8 gradle maven \
&& curl -fLo coursier https://git.io/coursier-cli \
&& chmod +x coursier \
&& ./coursier bootstrap --standalone -o scip-java com.sourcegraph:scip-java_2.13:0.8.18 --main com.sourcegraph.scip_java.ScipJava \
&& ./scip-java --help
# node lsif and python scip
RUN apk add --update nodejs npm \
&& npm install -g lsif \
&& npm install -g @sourcegraph/scip-python \
&& npm install -g @sourcegraph/scip-typescript
# python runtime for main script
RUN apk add --no-cache python3 py3-pip && \
pip3 install -r /action_internal/requirements.txt
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk
ENTRYPOINT ["python3", "/action_internal/main.py"]