{"id":20846954,"url":"https://github.com/lvthillo/python-flask-docker","last_synced_at":"2025-05-16T09:06:18.375Z","repository":{"id":32880786,"uuid":"141633224","full_name":"lvthillo/python-flask-docker","owner":"lvthillo","description":"Basic Python Flask app in Docker which prints the hostname and IP of the container","archived":false,"fork":false,"pushed_at":"2025-03-22T19:59:48.000Z","size":23,"stargazers_count":80,"open_issues_count":0,"forks_count":343,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T16:15:34.677Z","etag":null,"topics":["docker","python-flask"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lvthillo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-19T21:36:58.000Z","updated_at":"2025-03-27T15:32:37.000Z","dependencies_parsed_at":"2025-01-29T00:13:34.178Z","dependency_job_id":"8592800b-bb8c-453d-acea-435deb1a4ce2","html_url":"https://github.com/lvthillo/python-flask-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvthillo%2Fpython-flask-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvthillo%2Fpython-flask-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvthillo%2Fpython-flask-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvthillo%2Fpython-flask-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvthillo","download_url":"https://codeload.github.com/lvthillo/python-flask-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254501558,"owners_count":22081528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","python-flask"],"created_at":"2024-11-18T02:18:33.810Z","updated_at":"2025-05-16T09:06:13.366Z","avatar_url":"https://github.com/lvthillo.png","language":"Python","readme":"# python-flask-docker\nBasic Python Flask app in Docker which prints the hostname and IP of the container\n\n### Build application\nBuild the Docker image manually by cloning the Git repo.\n```\n$ git clone https://github.com/lvthillo/python-flask-docker.git\n$ docker build -t lvthillo/python-flask-docker .\n```\n\n### Download precreated image\nYou can also just download the existing image from [DockerHub](https://hub.docker.com/r/lvthillo/python-flask-docker/).\n```\ndocker pull lvthillo/python-flask-docker\n```\n\n### Run the container\nCreate a container from the image.\n```\n$ docker run --name my-container -d -p 8080:8080 lvthillo/python-flask-docker\n```\n\nNow visit http://localhost:8080\n```\n The hostname of the container is 6095273a4e9b and its IP is 172.17.0.2. \n```\n\n### Verify the running container\nVerify by checking the container ip and hostname (ID):\n```\n$ docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' my-container\n172.17.0.2\n$ docker inspect -f '{{ .Config.Hostname }}' my-container\n6095273a4e9b\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvthillo%2Fpython-flask-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvthillo%2Fpython-flask-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvthillo%2Fpython-flask-docker/lists"}