Skip to content

Commit

Permalink
Optimised docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Eri committed Mar 23, 2021
1 parent 3aa49fa commit bf0f140
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@ RUN apt-get -qq update && apt-get -qq install -y \
wget \
unzip \
git \
python3.6
python3.6 \
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/*

RUN apt-get update -qq && apt-get install -qq curl -y \
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install nodejs -y

RUN npm install npm@latest -g
RUN npm install xeokit/xeokit-gltf-to-xkt#33d3d4b84f8fffcdb457d74b4e98d01269fcd377 -g
RUN npm install npm@latest -g \
&& npm install xeokit/xeokit-gltf-to-xkt#35c3378849efca927af948ba0c2a293ca17c2da8 -g

# Converting tools
COPY --from=IfcConvert /usr/bin/IfcConvert /usr/bin/IfcConvert
RUN ln -s /usr/lib/IfcConvert /usr/local/bin/IfcConvert

COPY --from=IfcConvert /usr/local/lib/python3.6/dist-packages/ifcopenshell /usr/local/lib/python3.6/dist-packages/ifcopenshell

# Install COLLADA2GLTF
RUN wget --quiet https://github.com/KhronosGroup/COLLADA2GLTF/releases/download/v2.1.5/COLLADA2GLTF-v2.1.5-linux.zip
RUN unzip -q COLLADA2GLTF-v2.1.5-linux.zip -d /usr/lib/COLLADA2GLTF
RUN ln -s /usr/lib/COLLADA2GLTF/COLLADA2GLTF-bin /usr/local/bin/COLLADA2GLTF
RUN rm -rf COLLADA2GLTF-v2.1.5-linux.zip
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

# IFC metadata
RUN wget --quiet https://github.com/bimspot/xeokit-metadata/releases/download/1.0.0/xeokit-metadata-linux-x64.tar.gz
RUN tar -zxvf xeokit-metadata-linux-x64.tar.gz
RUN chmod +x xeokit-metadata-linux-x64/xeokit-metadata
RUN cp -r xeokit-metadata-linux-x64/ /usr/lib/xeokit-metadata
RUN ln -s /usr/lib/xeokit-metadata/xeokit-metadata /usr/local/bin/xeokit-metadata
RUN rm -rf xeokit-metadata-linux-x64.tar.gz
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

0 comments on commit bf0f140

Please sign in to comment.