Torque3D/Engine/lib/assimp/Dockerfile

23 lines
566 B
Docker
Raw Permalink Normal View History

2024-12-09 20:22:47 +00:00
FROM ubuntu:22.04
2022-05-14 03:42:41 +00:00
2024-12-09 20:22:47 +00:00
RUN apt-get update && apt-get install --no-install-recommends -y ninja-build \
2022-05-14 03:42:41 +00:00
git cmake build-essential software-properties-common
2024-12-09 20:22:47 +00:00
RUN add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get update
2022-05-14 03:42:41 +00:00
WORKDIR /opt
2024-12-09 20:22:47 +00:00
RUN apt install zlib1g-dev
2022-05-14 03:42:41 +00:00
# Build Assimp
RUN git clone https://github.com/assimp/assimp.git /opt/assimp
WORKDIR /opt/assimp
RUN git checkout master \
&& mkdir build && cd build && \
2024-12-09 20:22:47 +00:00
cmake -G 'Ninja' \
2022-05-14 03:42:41 +00:00
-DCMAKE_BUILD_TYPE=Release \
2024-12-09 20:22:47 +00:00
-DASSIMP_BUILD_ASSIMP_TOOLS=ON \
2022-05-14 03:42:41 +00:00
.. && \
2024-12-09 20:22:47 +00:00
ninja -j4 && ninja install