I searched the web and also docker compose file reference for a way to run a script(s) prior to a container build. I need this so I can update my docker build directory with latest artifacts for a service.I have a use case to run some post update script(s) to update the container after it was run as well. I currently can do all of this with bash wrapper scripts with docker commands. Wondering whether I can use docker-compose to do a pre/post script runs without resorting to wrapper bash shell type situation.
docker-compose version: 1.7.1
docker version 1.12.0
OS: CentOS Linux release 7.2.1511
Please let me know if there are options or other approaches to do accomplish this. Thanks