-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
41 lines (24 loc) · 979 Bytes
/
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
FROM emscripten/emsdk
# clonning the right repos
RUN git clone https://github.com/newspeaklanguage/newspeak.git
RUN git clone https://github.com/newspeaklanguage/primordialsoup -b extraRevs
RUN git clone https://github.com/codemirror/CodeMirror.git -b 5.62.0
# install primordialsoup dependencies
RUN sudo apt-get update
RUN sudo apt-get -y install g++-multilib scons
# build primordialsoup
RUN cd primordialsoup && ./build
# build newspeak
RUN cp -R CodeMirror newspeak/CodeMirror
# set emsdk vars
RUN . /emsdk/emsdk_env.sh
# remove the emsdk settings in build
RUN sed '2,6d' newspeak/build.sh > newspeak/new_build.sh
RUN cd newspeak && chmod 777 new_build.sh && bash new_build.sh
# setup shaperank directories
RUN mkdir -p /src/shaperank/src
COPY *.sh /src/shaperank
COPY ./src /src/shaperank/src
# remove the emsdk settings in build
RUN sed '2,6d' shaperank/build.sh > shaperank/new_build.sh
RUN cd shaperank && chmod 777 new_build.sh && bash new_build.sh