-
Notifications
You must be signed in to change notification settings - Fork 286
/
Dockerfile
67 lines (60 loc) · 1.41 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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 \
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 "/"