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

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type