move configuration generation in Dockerfile