{"id":25493713,"url":"https://github.com/kalicyh/poetry_dockerfile","last_synced_at":"2026-05-05T19:31:28.969Z","repository":{"id":278113964,"uuid":"934128387","full_name":"kalicyh/poetry_dockerfile","owner":"kalicyh","description":"在docker使用带poetry的python镜像","archived":false,"fork":false,"pushed_at":"2025-02-18T09:14:05.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T02:52:56.649Z","etag":null,"topics":["docker","docker-compose","docker-image","dockerfile","poetry"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/kalicyh.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}},"created_at":"2025-02-17T10:18:21.000Z","updated_at":"2025-02-18T09:14:09.000Z","dependencies_parsed_at":"2025-02-21T01:15:11.142Z","dependency_job_id":null,"html_url":"https://github.com/kalicyh/poetry_dockerfile","commit_stats":null,"previous_names":["kalicyh/poetry_dockerfile"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kalicyh/poetry_dockerfile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalicyh%2Fpoetry_dockerfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalicyh%2Fpoetry_dockerfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalicyh%2Fpoetry_dockerfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalicyh%2Fpoetry_dockerfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kalicyh","download_url":"https://codeload.github.com/kalicyh/poetry_dockerfile/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalicyh%2Fpoetry_dockerfile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32664770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["docker","docker-compose","docker-image","dockerfile","poetry"],"created_at":"2025-02-18T23:17:08.407Z","updated_at":"2026-05-05T19:31:28.964Z","avatar_url":"https://github.com/kalicyh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# poetry dockerfile\n\n预装poetry的python镜像\n\n便于dockerfile内使用\n\n添加xiaozhi dockerfile 适用于带ffmpeg和opus环境的开发\n\n## 使用\n\nkalicyh/poetry:v3.10_latest\n\n示例：\n\n```dockerfile\nFROM kalicyh/poetry:v3.10_latest AS builder\n\nWORKDIR /app\n\nCOPY pyproject.toml poetry.lock  /app/\n\n# 安装依赖并在安装后清理缓存。\n# 这样可以节省一些空间。\nRUN poetry install --no-root\nRUN rm -rf $POETRY_CACHE_DIR\n\n# # 现在，我们从构建器创建运行时镜像。\n# # 我们将复制环境变量和 PATH 路径引用。\nFROM python:3.10-slim AS runtime\n\nENV VIRTUAL_ENV=/app/.venv\nENV PATH=\"/app/.venv/bin:$PATH\"\n\nCOPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}\n\nCMD [\"python\", \"main.py\"]\n\n```\n\n## 开发\n\n### 脚本一键上传到自己仓库\n\n#### 设置自己的仓库名\n\n修改sh文件中的`REPOSITORY`\n\n#### 仅传入python版本\n\n```sh\n./build_push.sh 3.10\n```\n\n#### 更新多个py版本\n\n```sh\n./build_push.sh 3.10 \u0026\u0026 ./build_push.sh 3.11 \u0026\u0026 ./build_push.sh 3.12 \u0026\u0026 ./build_push.sh 3.13\n```\n\n#### 传入poetry版本\n\n```sh\n./build_push.sh 3.10 2.1\n```\n\n#### 权限不足\n\n`zsh: permission denied: ./build_push.sh`\n\n```sh\nsudo chmod 777 build_push.sh\n```\n\n### 编译命令\n\ndocker build -t kalicyh/poetry:v3.10_latest .\n\n### 运行命令\n\ndocker run -it kalicyh/poetry:v3.10_latest\n\n### 推送\n\ndocker push kalicyh/poetry:v3.10_latest\n\n## 编译\u0026推送\ndocker buildx build --platform linux/amd64,linux/arm64 -f Dockerfile.xiaozhi -t ghcr.io/kalicyh/poetry:v3.10_xiaozhi --push .\n\ndocker buildx build --platform linux/amd64,linux/arm64 -f Dockerfile.xiaozhi.node -t ghcr.io/kalicyh/node:v18-alpine --push .\n\ndocker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/kalicyh/xiaozhi-esp32-server:v2.18 --push .","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalicyh%2Fpoetry_dockerfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalicyh%2Fpoetry_dockerfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalicyh%2Fpoetry_dockerfile/lists"}