openfaas / python-flask-template

HTTP and Flask-based OpenFaaS templates for Python 3
MIT License
85 stars 86 forks source link

Support running as random UID in Docker image #19

Open alexellis opened 5 years ago

alexellis commented 5 years ago

You should be able to run with a --uid flag and a random number, and still be able to access your pip modules inside the function.

Right now that is probably not the case, but if you look at the way we changed openfaas/templates for python3 this fix can be applied to the templates in this repo also.