kcsoukup/python-docker

By kcsoukup

Updated 9 months ago

General Python Flask container for Docker and Kubernetes deployments.

Image
Languages & frameworks
0

716

kcsoukup/python-docker repository overview

Python Flask "Hello World" Image

A very simple image for testing Docker and Kubernetes deployments.

Browse to URL which exposes the following:

  • [Server Information]

  • Hostname

  • Container ID

  • IP Address

  • Python Version

  • Flask Version

  • Date/Time

  • [Client Information]

  • Your IP

  • X-Forwarded-For

  • User-Agent

  • [Request Information]

  • Method

  • Protocol

Quick Start

# docker-compose.yml
services:
  flask-app:
    image: kcsoukup/python-docker:latest
    container_name: flask-hello-world
    ports:
      - "5000:5000"
    environment:
      - FLASK_APP=app.py
      - FLASK_ENV=development
    restart: unless-stopped

Use Cases

Great for Docker Swarm and Kubernetes Replicas, refreshing returns the hostname and IP of container that responded.

Source Code

Tag summary

Content type

Image

Digest

sha256:43e91b60a

Size

49.3 MB

Last updated

9 months ago

docker pull kcsoukup/python-docker