forked from tkunic/ros-docker-simple
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 760 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (24 loc) · 760 Bytes
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
ARG DISTRO=melodic
FROM ros:$DISTRO-ros-base
ENV OVERLAY_WS=/ws_testserver
ENV DISTRO=melodic
RUN sudo apt-get install apt -y
RUN apt update && apt install -y \
tmux python-pip apt-utils\
python-catkin-tools \
ros-$DISTRO-serial \
ros-$DISTRO-rosbridge-suite \
ros-$DISTRO-web-video-server \
ros-$DISTRO-video-stream-opencv \
&& echo "source /ws_testserver/devel/setup.bash" >> /root/.bashrc \
&& python -m pip install defusedxml && python -m pip install netifaces
ADD ws_testserver /$OVERLAY_WS
WORKDIR $OVERLAY_WS
RUN . /opt/ros/$DISTRO/setup.sh && catkin build
WORKDIR /
RUN sed --in-place --expression \
'$isource "$OVERLAY_WS/devel/setup.bash"' \
/ros_entrypoint.sh
EXPOSE 11311
EXPOSE 8000
EXPOSE 8080