Skip to content

Commit f4ae01e

Browse files
committed
chore(docker): java env in image
1 parent 4a36d43 commit f4ae01e

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

Dockerfile

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
FROM williamfzc/srctx:v0.4.2
22

3-
RUN apk add --no-cache python3 py3-pip graphviz
3+
RUN apk add --no-cache graphviz curl
44

55
COPY . /action_internal
66

7-
RUN pip3 install -r /action_internal/requirements.txt && \
7+
# python lsif
8+
RUN apk add --no-cache python3 py3-pip && \
9+
pip3 install -r /action_internal/requirements.txt && \
810
pip3 install --upgrade git+https://github.com/sourcegraph/lsif-py.git
911

12+
# scip converter
13+
RUN curl -fLo scip-linux-amd64.tar.gz https://github.com/sourcegraph/scip/releases/download/v0.2.3/scip-linux-amd64.tar.gz \
14+
&& tar xf ./scip-linux-amd64.tar.gz \
15+
&& chmod +x ./scip \
16+
&& ./scip --help
17+
18+
# java/kotlin/scala scip/lsif
19+
RUN apk add openjdk17 \
20+
&& curl -fLo coursier https://git.io/coursier-cli \
21+
&& chmod +x coursier \
22+
&& ./coursier bootstrap --standalone -o scip-java com.sourcegraph:scip-java_2.13:0.8.18 --main com.sourcegraph.scip_java.ScipJava \
23+
&& ./scip-java --help
24+
1025
ENTRYPOINT ["python3", "/action_internal/main.py"]

0 commit comments

Comments
 (0)