diff --git a/Dockerfile b/Dockerfile index 6b4e6d2..21193d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,6 @@ sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd -# 2022 required RUN apt-get update && \ apt-get upgrade -y && \ apt-get install --no-install-recommends -y \ @@ -49,7 +48,6 @@ libpcap-dev - RUN mkdir -p /home/ubuntu/catkin_ws/src && \ /bin/bash -c "source /opt/ros/noetic/setup.bash ; cd /home/ubuntu/catkin_ws/src ; catkin_init_workspace" && \ /bin/bash -c "source /opt/ros/noetic/setup.bash ; cd /home/ubuntu/catkin_ws ; catkin build" && \ @@ -60,16 +58,19 @@ echo "alias cw='cd ~/catkin_ws'" >> ~/.bashrc -COPY src /home/ubuntu/catkin_ws/src - RUN apt-get update && \ apt-get upgrade -y && \ cd /home/ubuntu/catkin_ws && \ catkin clean -y && \ source /opt/ros/noetic/setup.bash && \ catkin build && \ + chown -R $USER:$USER $HOME && \ apt-get autoremove -y && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* + +COPY src /home/ubuntu/catkin_ws/src + + COPY ./startup.sh /startup.sh