Dockerfile 542 B

12345678910111213141516171819202122
  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. RUN apt install zlib1g-dev
  7. # Build Assimp
  8. RUN git clone https://github.com/assimp/assimp.git /opt/assimp
  9. WORKDIR /opt/assimp
  10. RUN git checkout master \
  11. && mkdir build && cd build && \
  12. cmake -G 'Ninja' \
  13. -DCMAKE_BUILD_TYPE=Release \
  14. -DASSIMP_BUILD_ASSIMP_TOOLS=ON \
  15. .. && \
  16. ninja -j4 && ninja install