forked from carlosrisma/OpenCDA
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile2
More file actions
68 lines (44 loc) · 1.76 KB
/
Dockerfile2
File metadata and controls
68 lines (44 loc) · 1.76 KB
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
68
FROM ubuntu:20.04
ARG USER=opencda
ARG CARLA_VERSION=0.9.12
ARG ADDITIONAL_MAPS=true
ARG PERCEPTION=true
ARG SUMO=true
ARG OPENCDA_FULL_INSTALL=true
ENV TZ=America/New_York
ENV DEBIAN_FRONTEND=noninteractive
ENV CARLA_VERSION=$CARLA_VERSION
ENV CARLA_HOME=/home/carla
ENV SUMO_HOME=/usr/share/sumo
# Add new user and install prerequisite packages.
WORKDIR /home/OpenCDA
RUN useradd -m ${USER}
RUN apt-get update && apt-get install -y software-properties-common \
&& apt-get install -y build-essential cmake debhelper git wget curl xdg-user-dirs xserver-xorg libvulkan1 libsdl2-2.0-0 \
libsm6 libgl1-mesa-glx libomp5 pip unzip libjpeg8 libtiff5 software-properties-common nano fontconfig
RUN add-apt-repository ppa:deadsnakes/ppa && \
apt-get install -y python3.7 && \
apt-get install -y ffmpeg libsm6 libxext6 && \
apt-get install -y python3-pip && \
apt-get install -y python3.7-distutils && \
apt-get install -y python3-apt
RUN python3.7 -m pip install --upgrade pip && python3.7 -m pip install --upgrade setuptools
COPY requirements.txt .
RUN python3.7 -m pip install -r requirements.txt
RUN python3.7 -m pip install carla==0.9.12
RUN python3.7 -m pip install coloredlogs
RUN python3.7 -m pip install omegaconf
RUN python3.7 -m pip install torch torchvision torchaudio yolov5 --extra-index-url https://download.pytorch.org/whl/cu116
RUN python3.7 -m pip install -qr https://raw.githubusercontent.com/ultralytics/yolov5/master/requirements.txt
RUN apt-get install -y libglfw3-dev
RUN python3.7 -m pip install open3d
# Install SUMO.
RUN add-apt-repository ppa:sumo/stable && apt-get update && apt-get install -y sumo sumo-tools sumo-doc \
&& pip install traci
COPY --chown=$USER:$USER . .
#EXPOSE 5555/tcp
# gRPC
#EXPOSE 50051/tcp
# Carla
#EXPOSE 2000/tcp
USER ${USER}