-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
25 lines (19 loc) · 1.59 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
# docker image build -t cfl:latest .
# docker container run -it cfl:latest
FROM alpine:3.17.2
LABEL maintainer="Jörgen Brandt <joergen@cuneiform-lang.org>"
ENV BIN_PATH /usr/local/bin
WORKDIR /tmp
RUN apk add --update git erlang erlang-dev erlang-dialyzer
RUN git clone https://github.com/erlang/rebar3.git && (cd rebar3 && ./bootstrap) && cp rebar3/rebar3 $BIN_PATH && rm -rf rebar3
RUN git clone https://github.com/joergen7/cuneiform.git && (cd cuneiform && rebar3 escriptize) && cp cuneiform/_build/default/bin/cfl $BIN_PATH && rm -rf cuneiform
RUN git clone https://github.com/joergen7/cre.git && (cd cre && rebar3 escriptize) && cp cre/_build/default/bin/cre $BIN_PATH && rm -rf cre
RUN git clone https://github.com/joergen7/cf_client.git && (cd cf_client && rebar3 escriptize) && cp cf_client/_build/default/bin/cfl_client $BIN_PATH && rm -rf cf_client
RUN git clone https://github.com/joergen7/cf_worker.git && (cd cf_worker && rebar3 escriptize) && cp cf_worker/_build/default/bin/cfl_wrk $BIN_PATH && rm -rf cf_worker
RUN git clone https://github.com/joergen7/effi.git && (cd effi && rebar3 escriptize) && cp effi/_build/default/bin/effi $BIN_PATH && rm -rf effi
# foreign languages
RUN apk add nodejs octave racket bash elixir gnuplot openjdk17 python3 R R-dev R-doc perl
# Wal
RUN apk add py3-pip cmake g++ python3-dev && pip install build && git clone https://github.com/ics-jku/wal.git && (cd wal && git checkout 1ffa6a3 && make install) && rm -rf wal
RUN echo '$y$j9T$7rB03tCGBZHKyQPR/jata1$UF9ICbyarE/Vs3s2paRKnIA8mP6ayA0mlog/KSSPMvD' > /root/.erlang.cookie && chmod 400 /root/.erlang.cookie
CMD ["sh"]