{"id":15776328,"url":"https://github.com/mkinney/flask_web","last_synced_at":"2025-03-31T14:50:13.446Z","repository":{"id":50200477,"uuid":"156787308","full_name":"mkinney/flask_web","owner":"mkinney","description":"simple tutorial showing how to use docker for python/flask app","archived":false,"fork":false,"pushed_at":"2022-12-08T01:17:11.000Z","size":17,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T17:57:29.869Z","etag":null,"topics":["docker","flask","python","testinfra","travis-ci"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkinney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-09T00:32:35.000Z","updated_at":"2018-11-12T00:10:09.000Z","dependencies_parsed_at":"2023-01-24T06:30:57.597Z","dependency_job_id":null,"html_url":"https://github.com/mkinney/flask_web","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/mkinney%2Fflask_web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkinney%2Fflask_web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkinney%2Fflask_web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkinney%2Fflask_web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkinney","download_url":"https://codeload.github.com/mkinney/flask_web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246485840,"owners_count":20785406,"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","flask","python","testinfra","travis-ci"],"created_at":"2024-10-04T17:20:31.392Z","updated_at":"2025-03-31T14:50:13.425Z","avatar_url":"https://github.com/mkinney.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/mkinney/flask_web.svg?branch=master)](https://travis-ci.org/mkinney/flask_web)\n\n# Background\nStarted from [dockerize-your-flask-application](https://runnable.com/docker/python/dockerize-your-flask-application)\n\n# Development\nMake sure the app works locally:\n\n    virtualenv -p python3 venv\n    source venv/bin/activate\n    pip install -r requirements.txt\n    python app.py\n\n# Build\n\n    docker build -t flask-tutorial:latest .\n\nor\n\n\tmake build\n\n\n# Run\n\n    docker run -d -p 5000:5000 flask-tutorial\n\nor\n\n    make run\n\n# Test\n\nOpen [http://localhost:5000/](http://localhost:5000/)\n\nNote: If you get an error \"fixture 'host' not found\", then be sure to activate your python virtual environment. (see Development above)\n\nYou can also run:\n\n    make test\n\n# Lint\nEnsure that we do not have any pylint issues by running:\n\n    make lint\n\n# Clean\n\n    make clean\n\n# Tips\n1. Create a git pre-commit hook to ensure code committed has some checks:\n\na. Create `.git/hooks/pre-commit`\n\n``` bash\n#!/bin/bash\nmake test\n```\n\nb. Ensure the script is executable:\n\n    chmod +x .git/hooks/pre-commit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkinney%2Fflask_web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkinney%2Fflask_web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkinney%2Fflask_web/lists"}