My Dockerfile sets up a package (ros-indigo-desktop-full) which includes environment setup scripts in bash.
I’d like to incorporate these settings (like ROS_PATH) into the environment of the container.
RUN . /opt/ros/indigo/setup.bash doesn’t work because the script requires bash, not the /bin/sh that Docker uses.
RUN ["/bin/bash", "-c", "echo '. /opt/ros/indigo/setup.bash' >> /root/.bashrc"] does what it suggests, but that .bashrc doesn’t get run when I start the container.
What’s the supported way of doing this?