Dockerfile 515 B

123456789101112131415161718192021
  1. FROM ubuntu:22.04
  2. RUN apt-get update && apt-get install -y ninja-build \
  3. git cmake build-essential software-properties-common
  4. RUN add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get update
  5. WORKDIR /opt
  6. # Build Assimp
  7. RUN git clone https://github.com/assimp/assimp.git /opt/assimp
  8. WORKDIR /opt/assimp
  9. RUN git checkout master \
  10. && mkdir build && cd build && \
  11. cmake -G 'Ninja' \
  12. -DCMAKE_BUILD_TYPE=Release \
  13. -DASSIMP_BUILD_ASSIMP_TOOLS=ON \
  14. .. && \
  15. ninja -j4 && ninja install