How to run shell script in docker build

In this article let’s discuss about How to run shell script in docker build. Let’s go through the following methods without any delay.

Method 1:

#!/bin/bash
set -x
while $1
do
    echo "Press [CTRL+C] to stop.."
    sleep 5
    echo "My second and third argument is $2 & $3"
done

Hope the above solution works.

Realted Posts : Instal kubectl ubutu