use a helper script as recommended on https://docs.docker.com/articles/dockerfile_best-practices/#entrypoint