-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (33 loc) · 1.13 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
FROM ros:humble
ENV DEBIAN_FRONTEND noninteractive
RUN ln -snf /usr/share/zoneinfo/Europe/Warsaw /etc/localtime && \
echo Europe/Warsaw > /etc/timezone && \
dpkg-reconfigure -f noninteractive tzdata && \
sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/g' /root/.bashrc && \
echo '! shopt -oq posix && source /etc/bash_completion' >> /root/.bashrc && \
echo 'export ROS_DOMAIN_ID=222' >> /root/.bashrc && \
echo 'source /opt/ros/${ROS_DISTRO}/setup.bash' >> /root/.bashrc && \
mkdir -p /root/ws/src
COPY ./src/ /root/ws/src/
WORKDIR /root/ws
RUN apt-get update -q && \
apt-get install -y --no-install-recommends \
bash-completion \
curl \
iputils-ping \
net-tools \
tzdata \
unzip \
software-properties-common \
build-essential \
cmake \
python3 \
python3-pip \
wget \
ros-humble-rviz2 \
ros-humble-rqt* && \
pip install --no-cache-dir simple-pid && \
rosdep update && \
rosdep install --from-paths src --ignore-src -r -y -q && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*