chore: add auto pip mirror selection by region
Some checks failed
CI / lint-and-compile (push) Has been cancelled
CI / lint-and-compile (pull_request) Has been cancelled

This commit is contained in:
root
2026-04-17 16:20:32 +08:00
parent c1e261aa14
commit d2995b2c48
4 changed files with 51 additions and 2 deletions

View File

@@ -1,7 +1,13 @@
services:
lingma-openai-gateway:
build: .
build:
context: .
# Use Tencent PyPI mirror during build to avoid timeout.
args:
PIP_INDEX_URL: https://mirrors.cloud.tencent.com/pypi/simple
PIP_TRUSTED_HOST: mirrors.cloud.tencent.com
PIP_REGION: auto
container_name: lingma-openai-gateway
env_file:
- .env