Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Desenvolvendo aplicações web com Flask e Docker
Search
felipe
November 20, 2019
Technology
27
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Desenvolvendo aplicações web com Flask e Docker
felipe
November 20, 2019
More Decks by felipe
See All by felipe
Functional Programming with examples
felipemocruha
0
34
Aplicações Flask Resilientes com Envoy e Kubernetes
felipemocruha
0
40
Docker e Kubernetes
felipemocruha
0
51
Emacs
felipemocruha
0
22
Introdução a Python e seu Ecossistema
felipemocruha
0
22
Data Structures and Performance
felipemocruha
0
26
Observability
felipemocruha
0
37
Testes de Software
felipemocruha
0
19
Other Decks in Technology
See All in Technology
新しいVibe Codingと”自走”について
watany
6
320
Kubernetesにおける学習基盤とLLMOpsの概要
ry
1
300
現地で盛り上がった WWDC26 Keynote
zozotech
PRO
1
240
手塩にかけりゃいいってもんじゃない
ming_ayami
0
570
RAG を使わないという選択肢
tatsutaka
1
230
自宅LLMの話
jacopen
1
560
Android の公式 Skill / Android skills
yanzm
0
140
SONiCの統計情報を取得したい
sonic
0
160
アンオフィシャルな、オフィシャルからのお願い
wyamazak_devrel
0
100
Bedrock AgentCore RuntimeでAuth0 Changelog調査AIをアップグレードした話
t5u8a5a
1
130
小さくはじめるSLI/SLO ~育てながら組織に定着させる実践知~ / Starting Small with SLI/SLOs: Building Adoption Through Continuous Growth
nari_ex
7
1.9k
ACE-Step-1.5で見る 音楽生成AIのしくみと“破綻だけ直す”Retake機能の開発【zennfes spring 2026 登壇資料】
personabb
1
450
Featured
See All Featured
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
How to Think Like a Performance Engineer
csswizardry
28
2.6k
Believing is Seeing
oripsolob
1
140
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
330
How to Ace a Technical Interview
jacobian
281
24k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.3k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.9k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
270
Typedesign – Prime Four
hannesfritz
42
3.1k
Transcript
Desenvolvendo aplicações web com Flask e Docker
Conteúdo ➔ O que é Docker e porque isso importa
➔ Estruturando a aplicação ➔ Build e Deploy ➔ Aplicação de exemplo* 1
O que é Docker | VMs vs Docker 2 Fonte:https://docs.docker.com/get-started/#containers-and-virtual-machines
O que é Docker | Arquitetura 3 Fonte: https://docs.docker.com/engine/docker-overview/#docker-architecture
O que é Docker | Imagens e Containers 4 11cd0b38bc34c
0B 582eca42208a3 64B 4c80de2f429bb 276MB 329b145c4ace1 0B h34kh33ld0dd2 9.28kB R/W Layer Container Layer Image Layers
Porque isso importa 5 Python Libs Code Python Libs Code
OS / Environment Virtualenv Docker
Estruturando a aplicação
12 factor app 1. Codebase 2. Dependencies 3. Config 4.
Backing Services 5. Build, release, run 6. Processes 6 7. Port Binding 8. Concurrency 9. Disposability 10. Dev/prod parity 11. Logs 12. Admin Processes
Isolamento de dependências 7
Utilizando logs 8
Bancos de dados como serviços de apoio 9
Build e Deploy
Criando um Dockerfile 10 11cd0b38bc34c 5MB 582eca42208a3 200kB 4c80de2f429bb 276MB
Criando uma imagem do Docker 11
Executando um container 12
Armazenando no Docker Hub 13
Dicas para produção ➔ Use load balancers e/ou proxies reversos
➔ Utilizar um orquestrador de containers (Kubernetes, Swarm, Mesos…) ➔ Seguir boas práticas na criação de imagens ➔ Criar volumes persistentes para os dados ➔ Criar imagens com responsabilidades pequenas 14
Onde encontrar mais ➔ Documentação oficial do Docker - https://docs.docker.com
➔ Creating Effective Docker Images - https://www.youtube.com/watch?v=vlS5EiapiII ➔ 12 factor app - https://12factor.net/ ➔ Miguel Grinberg’s blog - https://blog.miguelgrinberg.com/ ➔ awesome-docker https://github.com/veggiemonk/awesome-docker ➔ https://github.com/humiaozuzu/awesome-flask 15
Obrigado https://gitlab.com/felipemocruha/flask-conf-2018
[email protected]