Sign inSign up

aryanaroraa/simple-flask-app

By aryanaroraa

•Updated 1 day ago

Containerized Flask web application built with Python and Docker.

Image
Languages & frameworks
Developer tools
Web servers
0

25

aryanaroraa/simple-flask-app repository overview

⁠Simple Flask App

A simple Flask web application containerized with Docker.

⁠Tech Stack

  • Python
  • Flask
  • Docker

⁠Docker

The application is packaged into a lightweight Docker image using python:3.11-slim.

⁠Run
docker pull aryanaroraa/simple-flask-app:1.0

docker run -d \
  --name flask-app \
  -p 80:80 \
  aryanaroraa/simple-flask-app:1.0

Then open http://localhost in your browser.

⁠Project Structure

.
├── app/
│   ├── __init__.py
│   └── ...
├── run.py
├── requirements.txt
└── Dockerfile

⁠Dockerfile

The image uses python:3.11-slim as the base image, installs the required Python dependencies, copies the application into the container, and starts the Flask application.

⁠What This Project Demonstrates

  • Creating a Dockerfile for a Python application
  • Building a Docker image
  • Running a Flask application inside a container
  • Docker port mapping
  • Using a Python slim base image
  • Publishing a Docker image to Docker Hub

⁠Image

aryanaroraa/simple-flask-app:1.0

Tag summary

Content type

Image

Digest

sha256:ec367a081…

Size

50.4 MB

Last updated

1 day ago

docker pull aryanaroraa/simple-flask-app:1.0