forked from akio/mask_rcnn_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (54 loc) · 2.5 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
# docker build -t ubuntu1604py36
FROM ubuntu:16.04
RUN rm -rf /var/lib/apt/lists/* \
/etc/apt/sources.list.d/cuda.list \
/etc/apt/sources.list.d/nvidia-ml.list
RUN apt-get update && \
apt-get install -y software-properties-common vim
RUN apt-get update -y
RUN apt-get install -y build-essential python python-pip && \
apt-get install -y git apt-utils
# ==================================================================
# update pip
# ------------------------------------------------------------------
RUN python -m pip install pip --upgrade
# ==================================================================
# python
# ------------------------------------------------------------------
RUN python -m pip install numpy==1.13.3 \
scipy==0.19.1 \
opencv-python \
matplotlib \
scikit-image==0.13.0 \
scikit-learn==0.19.1 \
imageio \
tensorboardX \
pyyaml \
IPython \
h5py==2.7.0 \
Keras==2.1.2 \
tensorflow==1.4.1
# ==================================================================
# tools
# ------------------------------------------------------------------
RUN apt-get install -y libsm6 libxext6 libxrender-dev
RUN apt-get install -y python-tk
# ==================================================================
# ROS
# ------------------------------------------------------------------
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list' && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 && \
apt-get update && apt-get install -y --allow-unauthenticated ros-kinetic-desktop && \
apt-get install -y --allow-unauthenticated python-rosinstall python-rosdep python-vcstools python-catkin-tools && \
apt-get install -y --allow-unauthenticated ros-kinetic-tf2-geometry-msgs
# bootstrap rosdep
RUN rosdep init
RUN rosdep update
RUN pip install rospkg
# ==================================================================
# config & cleanup
# ------------------------------------------------------------------
RUN ldconfig && \
apt-get clean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/* /tmp/* ~/*