{"id":21920089,"url":"https://github.com/itaru2622/docker-fastapi","last_synced_at":"2026-04-16T11:35:04.739Z","repository":{"id":152349481,"uuid":"583830239","full_name":"itaru2622/docker-fastapi","owner":"itaru2622","description":"Docker container for fastapi python","archived":false,"fork":false,"pushed_at":"2026-03-14T05:46:48.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-14T16:40:35.502Z","etag":null,"topics":["docker","fastapi"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":false,"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/itaru2622.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-31T04:32:09.000Z","updated_at":"2026-03-14T05:46:44.000Z","dependencies_parsed_at":"2026-03-18T18:02:41.829Z","dependency_job_id":null,"html_url":"https://github.com/itaru2622/docker-fastapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itaru2622/docker-fastapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaru2622%2Fdocker-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaru2622%2Fdocker-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaru2622%2Fdocker-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaru2622%2Fdocker-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itaru2622","download_url":"https://codeload.github.com/itaru2622/docker-fastapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaru2622%2Fdocker-fastapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31884142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["docker","fastapi"],"created_at":"2024-11-28T20:13:14.006Z","updated_at":"2026-04-16T11:35:04.719Z","avatar_url":"https://github.com/itaru2622.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## simple usage on linux:\n```bash\nmake start\n\n# or\n\ndocker run --rm -it -p 8000:8000 -v ${PWD}:${PWD} -w ${PWD} itaru2622/fastapi:bookworm\n# the above cmd start docker container  with:\napt  install -y ${PWD}/requirements-apt.txt\npip3 install -r ${PWD}/requirements.txt\nuvicorn main:app \n```\n\n## test and play with embeded sample(/3catchall):\n\n```bash\nmake test\n# then, access http://localhost:8000/docs for swagger UI\n```\n\n## other usage on linux:\nyou can:\n- set any uvicorn options by opts environment variable.\n- change app name by app environment according to your implementation\n- change requirement file path for apt install by apt_requirements environment variable.\n- change requirement file path for pip install by py_requirements  environment variable.\n- change upgrade strategy      for pip install by pip_install_opt  environment variable.\n- use your own start.sh (boot up script) to full control boot procedure. in below case, ${PWD}/start.sh or ${PWD}/bin/start.sh if exists and it is executable.\n\n```bash\ndocker run --rm -it -p 8000:8000 -v ${PWD}:${PWD} -w ${PWD} -e py_requirements=${PWD}/requirements.txt -e pip_install_opt='--upgrade --upgrade-strategy eager' -e apt_requirements=${PWD}/requirements-apt.txt -e app=main:app -e opts='--host 0.0.0.0 --reload --reload-include \"*.py\" --reload-include \"*.conf\"' itaru2622/fastapi:bookworm\n#\n# the above cmd starts docker container via (/usr/local/bin/)start.sh with:\n#\napt  install -y ${apt_requirements}\npip3 install -r ${py_requirements} ${pip_install_opt}\nuvicorn ${opts} ${app}\n```\n\n## build docker image\n```bash\nmake build\n# or\ndocker build --build-arg base=python:3-bookworm --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} -t itaru2622/fastapi:bookworm .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitaru2622%2Fdocker-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitaru2622%2Fdocker-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitaru2622%2Fdocker-fastapi/lists"}