{"id":35262439,"url":"https://github.com/jonpas/flask-gunicorn-docker","last_synced_at":"2026-04-07T15:33:20.345Z","repository":{"id":179418392,"uuid":"617573439","full_name":"jonpas/flask-gunicorn-docker","owner":"jonpas","description":" Flask and Gunicorn Docker image.","archived":false,"fork":false,"pushed_at":"2025-03-13T11:19:09.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T12:26:42.691Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/jonpas.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":"2023-03-22T17:05:14.000Z","updated_at":"2025-03-13T11:18:19.000Z","dependencies_parsed_at":"2024-01-26T13:42:37.265Z","dependency_job_id":"0f07cfb7-95dc-46b4-9312-a8d3c250b47b","html_url":"https://github.com/jonpas/flask-gunicorn-docker","commit_stats":null,"previous_names":["jonpas/flask-gunicorn-docker"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jonpas/flask-gunicorn-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonpas%2Fflask-gunicorn-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonpas%2Fflask-gunicorn-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonpas%2Fflask-gunicorn-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonpas%2Fflask-gunicorn-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonpas","download_url":"https://codeload.github.com/jonpas/flask-gunicorn-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonpas%2Fflask-gunicorn-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31518601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-12-30T09:23:11.943Z","updated_at":"2026-04-07T15:33:20.339Z","avatar_url":"https://github.com/jonpas.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask and Gunicorn Docker image\n\nDocker image with only Flask and Gunicorn, to be used with a reverse proxy such as Traefik. No reverse proxy is included in the image.\n\nCurrently Alpine Python 3.13 image. _If there is interest for a bigger matrix of tags, distributions or other publishing platforms, open an issue._\n\n\n## Setup\n\n### Docker Compose\n\n```yml\nservices:\n  web:\n    image: ghcr.io/jonpas/flask-gunicorn:latest\n    volumes:\n      - ./app:/app\n```\n\n\n### Application\n\n`web/app.py`:\n```py\nfrom flask import Flask\nfrom werkzeug.middleware.proxy_fix import ProxyFix\n\napp = Flask(__name__)\n\napp.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1)\n\n@app.route(\"/\")\ndef hello_world():\n    return \"\u003cp\u003eHello, World!\u003c/p\u003e\"\n\nif __name__ == \"__main__\":\n    app.run(host=\"0.0.0.0\")\n```\n\n### Reverse Proxy\n\n#### Traefik\n\nSetup a rule, an entrypoint and any TLS configuration you require. Service port will be `8000` automatically as the only one exposed in the container.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonpas%2Fflask-gunicorn-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonpas%2Fflask-gunicorn-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonpas%2Fflask-gunicorn-docker/lists"}