Python Forum
Python flask uwsgi nginx docker - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Python flask uwsgi nginx docker (/thread-38192.html)



Python flask uwsgi nginx docker - mfaridi - Sep-14-2022

Hi,
I have flask application and want make docker image for this flask app, I search around and find I can use flask by uwsgi and nginx,
can I find very easy way to make docker image from this app,
some sites say use flask and nginx and uwsgi and suprvisor, abut all of this guide are old and some of them are before 2018.
Can I find new modern way to make docker image?


RE: Python flask uwsgi nginx docker - Larz60+ - Sep-14-2022

Flask uses standard images types with extensions of ['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'] see: https://flask.palletsprojects.com/en/2.2.x/patterns/fileuploads/?highlight=png#a-gentle-introduction

I'm not a docker user, but would expect the same for image types.
Is there something special here?


RE: Python flask uwsgi nginx docker - mfaridi - Sep-14-2022

(Sep-14-2022, 10:42 AM)Larz60+ Wrote: Flask uses standard images types with extensions of ['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'] see: https://flask.palletsprojects.com/en/2.2.x/patterns/fileuploads/?highlight=png#a-gentle-introduction

I'm not a docker user, but would expect the same for image types.
Is there something special here?
Thanks,
But my mean was make docker image from flask app by use uwsgi and nginx and make this container and use it in all kind of OS