{"id":18037482,"url":"https://github.com/fpgmaas/cloudrun-example-api","last_synced_at":"2025-07-15T05:33:15.691Z","repository":{"id":37725268,"uuid":"504248936","full_name":"fpgmaas/cloudrun-example-api","owner":"fpgmaas","description":"An example API used in the blogpost 'Deploying a Flask API to Google Cloud Run using Terraform'","archived":false,"fork":false,"pushed_at":"2022-06-22T14:17:25.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T13:51:44.200Z","etag":null,"topics":["blogpost","docker","flask","flask-api","poetry","python"],"latest_commit_sha":null,"homepage":"https://fpgmaas.com/blog/deploying-a-flask-api-to-cloudrun-2","language":"Dockerfile","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/fpgmaas.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":"2022-06-16T17:36:28.000Z","updated_at":"2024-01-18T15:34:53.000Z","dependencies_parsed_at":"2022-09-23T02:40:42.244Z","dependency_job_id":null,"html_url":"https://github.com/fpgmaas/cloudrun-example-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpgmaas%2Fcloudrun-example-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpgmaas%2Fcloudrun-example-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpgmaas%2Fcloudrun-example-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpgmaas%2Fcloudrun-example-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fpgmaas","download_url":"https://codeload.github.com/fpgmaas/cloudrun-example-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245817467,"owners_count":20677297,"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":["blogpost","docker","flask","flask-api","poetry","python"],"created_at":"2024-10-30T13:10:38.771Z","updated_at":"2025-03-27T09:31:33.579Z","avatar_url":"https://github.com/fpgmaas.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloudrun-example-api\n \nThis is a repository that contains the code used to create a Dockerized Flask API and to deploy it to Google Artifact Repository, used for [this blog post](https://fpgmaas.com/blog/deploying-a-flask-api-to-cloudrun-2). The related GitHub repository with the Flask API can be found [here](https://github.com/fpgmaas/cloudrun-example-api).\n\n## Running the Docker container\n\nFirst, build the container with\n\n```\ndocker build . -t flask_api\n```\n\nThen, run the container with\n\n```\ndocker run -d --env PORT=5000 -p 5000:5000 flask_api\n```\n\n## Deploying the image to Google Cloud\n\nTo deploy the Docker image to Google Cloud, simply create a new release on `main` through the GitHub UI. \nBy default, the image is pushed to `europe-west4-docker.pkg.dev/my-cloudrun-api/docker-repository/my-api:\u003ctag\u003e`.\n\n---\n\n[![Run on Google\nCloud](https://deploy.cloud.run/button.svg)](https://deploy.cloud.run/?git_repo=https://github.com/fpgmaas/cloudrun-example-api.git)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffpgmaas%2Fcloudrun-example-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffpgmaas%2Fcloudrun-example-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffpgmaas%2Fcloudrun-example-api/lists"}