{"id":23149964,"url":"https://github.com/turbocloud-dev/deploy-flask-app-dockerfile","last_synced_at":"2026-04-05T23:04:38.103Z","repository":{"id":268232074,"uuid":"903713172","full_name":"turbocloud-dev/deploy-flask-app-dockerfile","owner":"turbocloud-dev","description":"This repository includes an example Dockerfile for a Flask app. By using this Dockerfile, you can deploy the app almost anywhere, including Hetzner, DigitalOcean, OVH, Scaleway, AWS, or even a Raspberry Pi.","archived":false,"fork":false,"pushed_at":"2024-12-15T11:20:05.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-04T02:26:06.005Z","etag":null,"topics":["aws","azure","deployment","digitalocean","docker","dockerfile","flask","gcp","hetzner","host","python","self-hosting"],"latest_commit_sha":null,"homepage":"https://github.com/turbocloud-dev/deploy-flask-app-dockerfile","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/turbocloud-dev.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-12-15T11:18:49.000Z","updated_at":"2024-12-15T11:21:24.000Z","dependencies_parsed_at":"2024-12-15T12:23:30.858Z","dependency_job_id":"9d760e1f-c53c-42d4-b6b3-b66ed419f573","html_url":"https://github.com/turbocloud-dev/deploy-flask-app-dockerfile","commit_stats":null,"previous_names":["turbocloud-dev/deploy-flask-app-dockerfile"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/turbocloud-dev/deploy-flask-app-dockerfile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbocloud-dev%2Fdeploy-flask-app-dockerfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbocloud-dev%2Fdeploy-flask-app-dockerfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbocloud-dev%2Fdeploy-flask-app-dockerfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbocloud-dev%2Fdeploy-flask-app-dockerfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turbocloud-dev","download_url":"https://codeload.github.com/turbocloud-dev/deploy-flask-app-dockerfile/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbocloud-dev%2Fdeploy-flask-app-dockerfile/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267320257,"owners_count":24068527,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aws","azure","deployment","digitalocean","docker","dockerfile","flask","gcp","hetzner","host","python","self-hosting"],"created_at":"2024-12-17T18:15:47.273Z","updated_at":"2025-12-30T21:58:33.485Z","avatar_url":"https://github.com/turbocloud-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask App Dockerfile Example\n\nThis repository includes an example Dockerfile for a Flask app. By using this Dockerfile, you can deploy the app almost anywhere, including Hetzner, DigitalOcean, OVH, Scaleway, AWS, or even a Raspberry Pi.\n\n## Prerequisites\n\n### Prepare your project\n\n1. Copy the Dockerfile from this repository into the root folder of your project.\n2. Verify that the path to the main Python file is correct in the Dockerfile. For example, ensure the `CMD` line points to your app's entry point: `CMD [\"src/main.py\"]`.\n3. Ensure `requirements.txt` is located in the root of your project's folder.\n\n### Prepare a server\n\nSet up a new server on your cloud provider with:\n- A public IP address\n- SSH access from your development machine\n- A fresh Ubuntu 22.04 installation.\n\nEnsure the following ports are open:\n- **22** (SSH)\n- **80** (HTTP)\n- **443** (HTTPS)\n\nNote: Some cloud providers, such as AWS, close ports by default. Make sure to open these ports before proceeding with deployment.\n\n## Deploy with a Single Command\n\n### From a Local Machine\n\nRun the following command from your project directory:\n\n```bash\ncd my_project\ncurl https://turbocloud.dev/deploy | bash -s -- -i server_ip -p service_port\n```\n\nReplace `server_ip` with your server's IP address and `service_port` with the desired service port.\n\n### From GitHub or Bitbucket with CI\n\n1. SSH into your server:\n\n```bash\nssh root@server_ip\n```\n\n2. Run the following setup command:\n\n```bash\ncurl https://turbocloud.dev/setup | bash -s\n```\n\n3. Deploy the app using the **Turbocloud** CLI:\n\n```bash\nturbocloud\n```\n\n## Step-by-Step Guide\n\nFor detailed instructions, refer to the [Self-hosting Handbook](https://turbocloud.dev/book/deploy-flask-app/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbocloud-dev%2Fdeploy-flask-app-dockerfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbocloud-dev%2Fdeploy-flask-app-dockerfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbocloud-dev%2Fdeploy-flask-app-dockerfile/lists"}