diff --git a/Dockerfile b/Dockerfile index 9b0305e..4484ea0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,13 +19,16 @@ RUN apt-get install -y -qq \ COPY python-requirements.txt python-requirements.txt RUN pip3 install -r python-requirements.txt - -RUN echo 'source "/opt/ros/humble/setup.bash" --' >> ~/.bashrc && \ - echo 'cd rb_ws' >> ~/.bashrc && \ - echo 'colcon build --symlink-install' >> ~/.bashrc && \ - echo 'source install/local_setup.bash' >> ~/.bashrc && \ - echo 'chmod -R +x src/buggy/scripts/' >> ~/.bashrc && \ - echo 'source environments/docker_env.bash' >> ~/.bashrc +# ABSOLUTELY DO NOT use single quotes inside this block +# end any new lines with "\n\" (no quotes) +RUN printf '\n# automatically generated by Dockerfile \n\ +source "/opt/ros/humble/setup.bash" -- \n\ +cd rb_ws \n\ +colcon build --symlink-install \n\ +source install/local_setup.bash \n\ +chmod -R +x src/buggy/scripts/ \n\ +source environments/docker_env.bash \n\ +\n' >> ~/.bashrc # add mouse to tmux RUN echo 'set -g mouse on' >> ~/.tmux.conf