I'm using Docker to create a specific nginx container with SSL.
But I don't want my SSL files to be kept in my versionning system as is. Therefore they are encrypted. When building a docker container, I need the password to decrypt the files and test my nginx configuration.
I'm using read to get a prompt in my install script but Docker simply stops on the prompt:
 + echo 'Please enter the password for the SSL certificates: '
 + read -s SSL_PASSWORD
INFO[0008] The command [/bin/sh -c /build/setup.sh && /build/cleanup.sh] returned a non-zero code: 1
Is there some way to get a prompt when doing a docker build ?
Thanks for your help :)
 
     
     
    