Dmytro Nalyvaiko
Dmytro Nalyvaiko

Reputation: 1824

How to execute bash script in docker container before docker will run CMD?

I have backend which I deploy from CI build to production. For CI backend needs one config and for production it needs another config. I want to copy new config in production before docker will start my backend.

Upvotes: 0

Views: 178

Answers (1)

Hannes
Hannes

Reputation: 501

I am not sure if i understand your question right, but maybe this can help you: https://docs.docker.com/engine/reference/builder/#run or this: https://docs.docker.com/engine/reference/builder/#copy

or this: Execute a script before CMD

Upvotes: 1

Related Questions