0

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.

Dmytro Nalyvaiko
  • 1,494
  • 4
  • 15
  • 26
  • ENTRYPOINT can do that. https://stackoverflow.com/questions/44631605/entrypoint-in-combination-with-cmd – philipp Jun 29 '17 at 13:48

1 Answers1

1

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

Hannes
  • 483
  • 5
  • 20