Import ZAP Docker Image in GitLab

I’m trying to use ZAP in my GitLab repository.
(link to the docker image for ZAP: https://github.com/zaproxy/zaproxy/wiki/Docker)

But during the execution of the script in the ‘yml’ file, I got the ‘proxy’ error, now instead, after some modifications, I get this error:

File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 621, in main
     raise RuntimeError ('Click will abort further execution'

RuntimeError: Click will abort further execution because Python is configured to use ASCII as encoding for the environment. Either switch to Python 2 or consult http://click.pocoo.org/python3/ for mitigation steps.

Has anyone already had the same problem or knows how I could solve it?
Thank you all

Source: StackOverflow