forked from donalffons/opencascade.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
63 lines (53 loc) · 1.3 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
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM emscripten/emsdk:2.0.23
RUN \
apt update -y && \
apt install -y \
bash \
build-essential \
cmake \
curl \
git \
libffi-dev \
libgdbm-dev \
libncurses5-dev \
libnss3-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libbz2-dev \
npm \
python3 \
python3-pip \
python3-setuptools \
zlib1g-dev
RUN \
pip install \
libclang \
pyyaml \
cerberus
WORKDIR /rapidjson/
RUN \
git clone https://github.com/Tencent/rapidjson.git .
WORKDIR /freetype/
RUN \
git clone https://git.savannah.nongnu.org/git/freetype/freetype2.git .
ENV OCCT_COMMIT_HASH_FULL fecb042498514186bd37fa621cdcf09eb61899a3
ENV OCCT_COMMIT_HASH fecb042
WORKDIR /occt/
RUN \
curl "https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=${OCCT_COMMIT_HASH_FULL};sf=tgz" -o occt.tar.gz && \
tar -xvf occt.tar.gz
WORKDIR /opencascade.js/
COPY src ./src
RUN \
mkdir /opencascade.js/build/ && \
mkdir /opencascade.js/dist/ && \
/opencascade.js/src/applyPatches.py && \
/opencascade.js/src/compileSources.py && \
/opencascade.js/src/generateBindings.py && \
/opencascade.js/src/compileBindings.py && \
chmod -R 777 /opencascade.js/ && \
chmod -R 777 /occt
COPY builds ./builds
WORKDIR /src/
ENTRYPOINT [ "/opencascade.js/src/run.sh" ]