-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
47 lines (41 loc) · 2.29 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
# ----------------------------------------------------------------------------
# xeokit-converter
# ----------------------------------------------------------------------------
FROM mcr.microsoft.com/dotnet/core/runtime:3.1-focal as xeokit-converter
RUN apt-get -qq update && apt-get -qq install -y \
wget \
unzip \
git \
python3.8 \
curl \
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install nodejs -y \
&& apt autoremove -qq -y \
&& rm -r /var/lib/apt/lists/*
# ----------------------------------------------------------------------------
# Converting tools
# ----------------------------------------------------------------------------
# Install IfcOpenShell-python version 0.7.0, python 3.8
RUN wget --quiet https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-38-v0.7.0-e508fb4-linux64.zip \
&& unzip -q ifcopenshell-python-38-v0.7.0-e508fb4-linux64.zip -d /usr/local/lib/python3.8/dist-packages \
&& rm -rf ifcopenshell-python-38-v0.7.0-e508fb4-linux64.zip
# Install IfcConvert version 0.7.0
RUN wget --quiet https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v0.7.0-e44e03f-linux64.zip \
&& unzip -q IfcConvert-v0.7.0-e44e03f-linux64.zip -d /usr/lib/IfcConvert \
&& ln -s /usr/lib/IfcConvert/IfcConvert /usr/local/bin/IfcConvert \
&& rm -rf IfcConvert-v0.7.0-e44e03f-linux64.zip
# Install COLLADA2GLTF version 2.1.5
RUN wget --quiet https://github.com/KhronosGroup/COLLADA2GLTF/releases/download/v2.1.5/COLLADA2GLTF-v2.1.5-linux.zip \
&& unzip -q COLLADA2GLTF-v2.1.5-linux.zip -d /usr/lib/COLLADA2GLTF \
&& ln -s /usr/lib/COLLADA2GLTF/COLLADA2GLTF-bin /usr/local/bin/COLLADA2GLTF \
&& rm -rf COLLADA2GLTF-v2.1.5-linux.zip
# Install xeokit-gltf-to-xkt latest version
RUN npm install npm@latest -g \
&& npm install xeokit/xeokit-gltf-to-xkt#35c3378849efca927af948ba0c2a293ca17c2da8 -g
# Install xeokit-metadata version 1.0.0
RUN wget --quiet https://github.com/bimspot/xeokit-metadata/releases/download/1.0.0/xeokit-metadata-linux-x64.tar.gz \
&& tar -zxvf xeokit-metadata-linux-x64.tar.gz \
&& chmod +x xeokit-metadata-linux-x64/xeokit-metadata \
&& cp -r xeokit-metadata-linux-x64/ /usr/lib/xeokit-metadata \
&& ln -s /usr/lib/xeokit-metadata/xeokit-metadata /usr/local/bin/xeokit-metadata \
&& rm -rf xeokit-metadata-linux-x64.tar.gz