Configuring snap with python (hanged process)

Hello everyone,
does anybody know how to prevent from the snappy configuration process hanging? In documentation, there is one tip which says: If the process hangs, press CTRL+C. It works but I want to run SNAP in the docker and i really need to jump through the step because it stops entire docker image building pipeline.

Thank you very much for any tips.

Maybe you can use the tip given in the note on this page:
Update SNAP from the command line - SNAP - Confluence (atlassian.net)

The issue is the same.