Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.23 KB

File metadata and controls

35 lines (28 loc) · 1.23 KB

Docker Image Build and Push Docker Images Scan Docker Image

🐳 Dockerized To-Do API / Hello World App

A simple Flask app that demonstrates how to containerize an application using Docker.

🚀 Features

  • Simple REST API (GET and POST)
  • Uses dependencies from requirements.txt
  • Dockerized for easy deployment

🧰 Tech Stack

  • Python + Flask
  • Docker

🧩 Setup

# Clone repo
git clone https://github.com/younesmod/docker-python-todo-api.git
cd docker-python-todo-api

# Build Docker image
docker build -t docker-python-todo-api .

# Run container
docker run -p 5000:5000 docker-python-todo-api    # Flask version

🧪 Example API Calls

curl http://localhost:5000/
curl -X POST -H "Content-Type: application/json" \
     -d '{"task": "Learn Docker"}' http://localhost:5000/todos