-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
42 lines (37 loc) · 1012 Bytes
/
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
FROM python:3.10.13
WORKDIR home/commonroad-geometric
# OpenGL and commonroad-drivability checker
RUN apt-get update \
&& apt-get install -y -qq --no-install-recommends \
libglvnd0 \
libgl1 \
libglx0 \
libegl1 \
libxext6 \
libx11-6 \
libxrender1 \
wget\
&& apt-get install -y \
build-essential \
cmake \
git git-lfs \
wget \
unzip \
libboost-dev \
libboost-thread-dev \
libboost-test-dev \
libboost-filesystem-dev \
libeigen3-dev \
libomp-dev \
freeglut3-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Files should be excluded through .dockerignore
COPY . .
# Build commonroad-drivability with more than one thread
ARG CMAKE_BUILD_PARALLEL_LEVEL=4
RUN pip install --upgrade pip \
&& pip install --extra-index-url https://download.pytorch.org/whl/cpu torch==2.0.1 torch_geometric==2.3.1 \
&& pip install -e .[tests] \
&& pip cache purge
ENV SUMO_HOME=/usr/local/lib/python3.10/site-packages/sumo/