Franklin Osuji’s Post

Just built and ran my first Python app inside Docker 🚀 Today I containerized a simple Python script using Docker and successfully passed environment variables into the container at runtime. What’s happening here: A Python app (hello.py) reads an environment variable: STUDENT_NAME A Dockerfile builds the app into an image I run the container twice: once without the variable → “No student name provided” once with -e STUDENT_NAME=Alice → “Student name: Alice” This small project helped me understand: How Docker images are built How containers run in isolation How environment variables work inside containers The difference between build-time and run-time configuration It’s a simple example, but it shows the core idea of portable, reproducible environments the same app runs the same way anywhere. Step by step, building real DevOps skills. More to come. 💻🐳 #Docker #DevOps #Python #LearningByDoing #Cloud #Containers #TechJourney

  • text

To view or add a comment, sign in

Explore content categories