{"id":19527032,"url":"https://github.com/kazemmdev/docker-sample-flask","last_synced_at":"2026-05-15T10:40:38.475Z","repository":{"id":250521197,"uuid":"834697263","full_name":"kazemmdev/docker-sample-flask","owner":"kazemmdev","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-28T06:45:52.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T15:57:03.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kazemmdev.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":"2024-07-28T04:48:03.000Z","updated_at":"2024-09-09T06:55:12.000Z","dependencies_parsed_at":"2025-01-08T15:46:20.454Z","dependency_job_id":"2b99f702-ac1e-4d52-a1fd-ee5805e7b209","html_url":"https://github.com/kazemmdev/docker-sample-flask","commit_stats":null,"previous_names":["kazemmdev/docker-sample-flask"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazemmdev%2Fdocker-sample-flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazemmdev%2Fdocker-sample-flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazemmdev%2Fdocker-sample-flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazemmdev%2Fdocker-sample-flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kazemmdev","download_url":"https://codeload.github.com/kazemmdev/docker-sample-flask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240778712,"owners_count":19856086,"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":[],"created_at":"2024-11-11T01:13:22.414Z","updated_at":"2026-05-15T10:40:33.441Z","avatar_url":"https://github.com/kazemmdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerized Sample Flask App\nThis repository contains a Dockerized Flask application with two main functionalities:\n\n1.\tCompute Fibonacci sequence up to a given number.\n2.\tPredict a value using a simple TensorFlow neural network model.\n\n\n### Getting Started\n\nThese instructions will help you set up and run the Flask application inside a Docker container.\n\nPrerequisites\n\nEnsure you have the following installed on your system:\n* Docker\n* curl (optional, for testing the API via the command line)\n\n## EXAMPLE_1: Fibonacci Example\n\n1.\tBuild the Docker image:\n\n```sh\ncd fibonacci\ndocker build -t flask-api .\n```\n\n2. Run the Docker container:\n\n```sh\ndocker run -p 4000:4000 flask-api\n```\n\n3. Test the API using curl:\n```sh\ncurl -X POST http://localhost:4000/predict -H \"Content-Type: application/json\" -d '{\"number\": 5}'\n```\n\nExpected Response:\n\n```json\n{\n    \"status\": \"success\",\n    \"fibonacci_sequence\": [\n        {\"Fibonacci Numbers\": 0},\n        {\"Fibonacci Numbers\": 1},\n        {\"Fibonacci Numbers\": 1},\n        {\"Fibonacci Numbers\": 2},\n        {\"Fibonacci Numbers\": 3},\n        {\"Fibonacci Numbers\": 5},\n        {\"Fibonacci Numbers\": 8},\n        {\"Fibonacci Numbers\": 13},\n        {\"Fibonacci Numbers\": 21},\n        {\"Fibonacci Numbers\": 34}\n    ]\n}\n```\n\n\n## EXAMPLE_2: TensorFlow Prediction Example\n\n1.\tBuild the Docker image:\n\n```sh\ncd tensorflow\ndocker build -t flask-api .\n```\n\n2. Run the Docker container:\n\n```sh\ndocker run -p 4000:4000 flask-api\n```\n\n3. Test the API using curl:\n```sh\ncurl -X POST http://localhost:4000 -H \"Content-Type: application/json\" -d '{\"number\": 1}'\n```\n\nExpected Response:\n\n```json\n{\n    \"input\": 1,\n    \"prediction\": 0.48668569326400757,\n    \"status\": \"success\"\n}\n```\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.\n\n## Acknowledgments\n\nThanks to the Flask, TensorFlow, and Docker communities for their excellent documentation and tutorials.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazemmdev%2Fdocker-sample-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkazemmdev%2Fdocker-sample-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazemmdev%2Fdocker-sample-flask/lists"}