-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (33 loc) · 1.43 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
FROM sbtscala/scala-sbt:eclipse-temurin-jammy-11.0.22_7_1.9.9_3.3.3
RUN apt update \
&& apt install -y build-essential python3-distutils libgmp-dev opam \
&& opam init --disable-sandboxing -y \
&& opam switch create artifact --packages=ocaml-variants.5.0.0+options,ocaml-option-flambda -y \
&& eval $(opam env) \
&& opam install zarith core_bench -y \
&& mkdir tree-sitter
WORKDIR /root/tree-sitter
RUN git clone https://github.com/serenadeai/java-tree-sitter.git \
&& git clone https://github.com/tree-sitter/tree-sitter-haskell.git
WORKDIR /root/tree-sitter/tree-sitter-haskell
RUN git checkout b6ec26f181dd059eedd506fa5fbeae1b8e5556c8
WORKDIR /root/tree-sitter/java-tree-sitter
RUN git submodule update --init --recursive \
&& git checkout f8a1f98a214a6961b55b201fbea957eacec182d4 \
&& sed -i "s/if cpp/if cpp or True/g" ./build.py \
&& ./build.py -o libtree-sitter -v ../tree-sitter-haskell \
&& cp ./libtree-sitter.so /lib/libjava-tree-sitter-haskell.so
WORKDIR /root
RUN echo "eval \$(opam env 2> /dev/null)" >> ./.bashrc
RUN apt install r-base -y \
&& R -e "install.packages(c('RColorBrewer', 'ggplot2', 'gridExtra'), repos='http://cran.rstudio.com/')"
WORKDIR /root
COPY . ./lumberhack/
WORKDIR /root/lumberhack/
RUN git config --global user.email "[email protected]" \
&& git config --global user.name "Example" \
&& git init \
&& git add . \
&& git commit -m "Init"
WORKDIR /root
CMD /bin/bash