forked from RobotWebTools/webrtc_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (30 loc) · 1.39 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
FROM ros:noetic-perception
# ROS dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ros-noetic-cv-bridge \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git\
curl
RUN apt-get install -y --no-install-recommends python2 gmodule-2.0 libgtk-3-dev libglib2.0-dev pulseaudio libasound2-dev libpulse-dev ros-noetic-image-transport ninja-build stow
RUN apt-get install -y --no-install-recommends libjpeg-turbo8 libjpeg-turbo8-dev
RUN update-alternatives --install /usr/bin/python python /usr/bin/python2 1
WORKDIR /home/3rdparty/jsoncpp/
RUN git clone https://github.com/open-source-parsers/jsoncpp.git . && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" .. && \
make && \
make install
ENV LD_LIBRARY_PATH /usr/local/lib/:$LD_LIBRARY_PATH
WORKDIR /home/webrtc_ws
COPY . /home/webrtc_ws/src/
RUN git clone https://github.com/GT-RAIL/async_web_server_cpp.git /home/webrtc_ws/src/async_web_server_cpp/
RUN /ros_entrypoint.sh catkin_make_isolated --install --install-space "/usr/local/webrtc/" \
&& sed -i '$isource "/usr/local/webrtc/setup.bash"' /ros_entrypoint.sh \
&& rm -rf /home/webrtc_ws/
ENTRYPOINT ["/ros_entrypoint.sh"]