Menu

1 / 2

Building a Blog Platform with Docker #5: Add a Dockerfile + Deploy to Clouderized

DEV Community: flaskΒ·David TioΒ·6 months ago
#L1t9CN9y
#dev#path#clouderized#article#englishlanguage
Reading 0:00
15s threshold

🐳 Building a Blog Platform with Docker #5: Add a Dockerfile + Deploy to Clouderized

Quick one-liner: Write a Dockerfile, build an image, and deploy to Clouderized with one git push so your Flask blog goes live with automatic HTTPS and zero server babysitting.

πŸ”§ Before We Start: URL Control for Blogger Migration

Before touching Docker, there's one fix from Episode 4 worth making now.

Right now our platform builds URLs from the filename: hey-markdown.md becomes /2026/04/hey-markdown.html . That works for new posts, but not for migrated Blogger URLs:

Blogger URL Filename-based URL

/2026/03/docker-rootless-on-ubuntu-2026-guide.html /2026/03/docker-rootless-ubuntu.html

We add canonical_url to frontmatter and use it for two things:

The actual URL this platform serves the post at β€” so migrated posts keep their Blogger paths

<link rel="canonical"> β€” tells Google this page is the same content as the old Blogger URL

Update content/posts/hey-markdown.md :

--- title : " Hey Markdown" date : 2026-04-25…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.