Тёмный

Containerizing a simple Python Flask app using Docker 

FancyGUI
Подписаться 654
Просмотров 6 тыс.
50% 1

In today's video I'm - finally - creating a docker image for a Flask app.
You can find the source code of this project here:
fancywhale.link/fancygui-flas...
Don't forget to 'checkout' my other projects:
GitLab: fancywhale.link/gitlab-fancyw...
GitHub: fancywhale.link/github

Наука

Опубликовано:

 

16 июн 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@terabhaininja9
@terabhaininja9 2 месяца назад
Really enjoyed the way you speak, code. It was very entertaining watching someone who knows what they are doing and explaining what they are doing. Surprising to see such quality content for someone with less than a 1000 subs. Great job!
@_0minutes
@_0minutes 11 месяцев назад
Please continue making videos like this, they are so fun to watch and so educational at the same time. Hope you make more!
@devlog_channel
@devlog_channel 7 месяцев назад
Hey man, thank you so much! You really helped me figure out how to configure ports!!! Keep it up!
@danielagmsz
@danielagmsz Год назад
Finally, I was missing you!
@FancyGUI
@FancyGUI Год назад
👀 💍
@riptorforever2
@riptorforever2 Год назад
Obrigado por voltar, gui! :)
@FancyGUI
@FancyGUI Год назад
Magina! Eu que agradeço o apoio!
@leandrospiteri
@leandrospiteri Год назад
Very good video, very useful
@FancyGUI
@FancyGUI Год назад
Glad you think so!
@khalidRaza01
@khalidRaza01 7 месяцев назад
Hi, I need help, Do we deploy Flask/django app in containers for production? because how do you make dockerfile and image for nginx+Gunicorn.
@FancyGUI
@FancyGUI 6 месяцев назад
We definitely do! Gunicorn and uvicorn are frameworks to host your python process in a more efficient/streamlined manner, which allows it to be safer and faster. Similarly, nginx is a webserver that could be used as a method to host, route, proxy, cache, etc. As part of the kubernetes series I’m recording, I’ll show you how to use them effectively for your container images and deployments. But a glimpse of that: install uvicorn or gunicorn, then use them as entry points to run your python application that is compatible. Let me know how it goes!
@boyata-rj3zy
@boyata-rj3zy 2 месяца назад
Why CMD ["python3", "app.py"] doesn't work ? Locally without docker when I run python3 app.py in my folder project it works.
@FancyGUI
@FancyGUI 2 месяца назад
It probably means that you don’t have python3 or the app.py files in your container. Containers are isolated boxes that don’t really replicate anything from local machine. So working locally really doesn’t mean anything. Try checking which base image you are running and whether or not you have copied the files over. Let me know if it works! Also, shoot out the error if it still doesn’t work. Cheers!
@abdelrahmanali9768
@abdelrahmanali9768 5 месяцев назад
Hey When i make a changes in my flaks app I have to rebuild rerun my container What should i do? I tried make a volume to my container but it doesn't work idk why
@FancyGUI
@FancyGUI 4 месяца назад
Great question! There are good reasons not to allow dynamic changes to your code in containers, but also good reasons to do so! The good reason is really for Dev containers, which are a medium to install all that you need for the development of your app, and attach the volume to your container. Also you’d have to remember to allow hot reload. Now, for actually running this app, don’t do that. You want the code to be packaged with the image and only what you need to run it. You don’t want it to be dynamic and change, it could introduce issues, instability and it is insecure. The point of container images is that they are consistent all the time, I’d recommend trying to stick with that.
Далее
Creating a simple CLI with Python Click
13:34
Просмотров 22 тыс.
Копия iPhone с WildBerries
01:00
Просмотров 197 тыс.
How to deploy a simple app in Kubernetes
17:26
Python Decorators and how to create them
13:21
Просмотров 1,4 тыс.
Containerize Python Applications with Docker
20:51
Просмотров 111 тыс.
Create A Python API in 12 Minutes
12:05
Просмотров 590 тыс.
Docker Tutorial for Beginners [FULL COURSE in 3 Hours]
2:46:15
Это Xiaomi Su7 Max 🤯 #xiaomi #su7max
1:01
Просмотров 912 тыс.