FROM ubuntu:focal ENV DEBIAN_FRONTEND=noninteractive # Install build dependencies RUN apt-get clean \ && apt-get update \ && apt-get -y install --no-install-recommends \ build-essential \ cmake \ git \ pkg-config \ software-properties-common \ && rm -rf /var/lib/apt/lists/* # Install DART dependencies RUN apt-get update \ && apt-get -y install --no-install-recommends \ libeigen3-dev \ libassimp-dev \ libccd-dev \ libfcl-dev \ libfmt-dev \ libnlopt-cxx-dev \ coinor-libipopt-dev \ libbullet-dev \ libode-dev \ liboctomap-dev \ libtinyxml2-dev \ liburdfdom-dev \ libxi-dev \ libxmu-dev \ freeglut3-dev \ libopenscenegraph-dev \ libspdlog-dev \ && rm -rf /var/lib/apt/lists/* # Install dartpy dependencies RUN apt-get update \ && apt-get -y install --no-install-recommends \ libpython3-dev \ pybind11-dev \ python3 \ python3-pip \ python3-pytest \ python3-distutils \ && rm -rf /var/lib/apt/lists/* # Compile and install DART and dartpy COPY . /opt/dart WORKDIR /opt/dart RUN cd /opt/dart \ && mkdir build \ && cd build \ && cmake \ -DCMAKE_INSTALL_PREFIX=/usr/ \ -DCMAKE_BUILD_TYPE=Release .. \ -DBUILD_SHARED_LIBS=ON \ && make \ && make install \ && make dartpy \ && make install-dartpy # Install python dependencies RUN python3 -m pip install\ numpy WORKDIR "/"