forked from donalffons/opencascade.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (39 loc) · 1.46 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM phusion/baseimage:bionic-1.0.0
CMD ["/sbin/my_init"]
RUN apt update -y
RUN apt install -y build-essential python3.8 python3-pip git cmake bash curl npm
RUN python3.8 -m pip install patch requests CppHeaderParser
WORKDIR /emscripten/
RUN git clone https://github.com/emscripten-core/emsdk.git .
RUN \
./emsdk install 2.0.4 && \
./emsdk activate 2.0.4
SHELL ["/bin/bash", "-c"]
WORKDIR /clang/
RUN python3.8 -m pip install -Iv clang==10.0.1
RUN apt-get update && apt-get install -y \
xz-utils \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN curl -SL https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/clang+llvm-10.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz \
| tar -xJC . && \
mv clang+llvm-10.0.0-x86_64-linux-gnu-ubuntu-18.04 clang_10 && \
PATH=/clang/clang_10/bin:$PATH && \
LD_LIBRARY_PATH=/clang/clang_10/lib:$LD_LIBRARY_PATH
RUN PATH=/clang/clang_10/lib:$PATH
RUN LD_LIBRARY_PATH=/clang/clang_10/lib:$LD_LIBRARY_PATHLD_LIBRARY_PATH
RUN \
cd clang_10/lib && \
ln -s libclang.so.10 libclang-10.so
RUN apt-get update -y && apt-get install -y libtinfo5
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
RUN apt update -y && apt upgrade -y && apt install -y gcc-10
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENV KILL_PROCESS_TIMEOUT=300
ENV KILL_ALL_PROCESSES_TIMEOUT=300
WORKDIR /opencascade/
COPY . .
ENTRYPOINT \
source /emscripten/emsdk_env.sh && \
bash -c "./patience.sh &" && \
python3.8 make.py wasm > /dev/null 2>&1