dockerfile - running bash command and then reseting to default shell
You can use the following to use bash for running a command for example, "source my-execution-file" and switch back to sh.
SHELL ["/bin/bash", "-c
RUN nvm install 17
SHELL ["/bin/sh", "-c"]
To find out more about bash vs sh
https://stackoverflow.com/questions/5725296/difference-between-sh-and-bash
Comments