skip to Main Content

How to run a bash script during docker run?

After building the image I am executing the below command to containerize the docker image: sudo docker run -d -p 8080:80 --env-file /home/test/localwork/0014-test/dockerBuildScripts/scripts/env_variables.list test:1.0 I have a bash script that sets the database credentials in a file: #!/bin/bash echo "SetEnv…

VIEW QUESTION
Back To Top
Search