fix: use Tsinghua PyPI mirror in all Dockerfiles
pip install from pypi.org times out in China network. Use https://pypi.tuna.tsinghua.edu.cn/simple for both pip and poetry. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
43e5f468eb
commit
dc7303875f
|
|
@ -16,8 +16,9 @@ COPY services/chart-service/src/ /app/src/
|
||||||
COPY services/chart-service/alembic/ /app/alembic/
|
COPY services/chart-service/alembic/ /app/alembic/
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pip install --no-cache-dir poetry && \
|
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple poetry && \
|
||||||
poetry config virtualenvs.create false && \
|
poetry config virtualenvs.create false && \
|
||||||
|
poetry source add --priority=primary tuna https://pypi.tuna.tsinghua.edu.cn/simple && \
|
||||||
poetry install --no-interaction --no-ansi --no-root
|
poetry install --no-interaction --no-ansi --no-root
|
||||||
|
|
||||||
# Set PYTHONPATH to include shared
|
# Set PYTHONPATH to include shared
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,9 @@ COPY services/data-service/src/ /app/src/
|
||||||
COPY services/data-service/alembic/ /app/alembic/
|
COPY services/data-service/alembic/ /app/alembic/
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pip install --no-cache-dir poetry && \
|
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple poetry && \
|
||||||
poetry config virtualenvs.create false && \
|
poetry config virtualenvs.create false && \
|
||||||
|
poetry source add --priority=primary tuna https://pypi.tuna.tsinghua.edu.cn/simple && \
|
||||||
poetry install --no-interaction --no-ansi --no-root
|
poetry install --no-interaction --no-ansi --no-root
|
||||||
|
|
||||||
# Set PYTHONPATH to include shared
|
# Set PYTHONPATH to include shared
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,9 @@ COPY services/export-service/alembic/ /app/alembic/
|
||||||
COPY services/export-service/alembic.ini /app/alembic.ini
|
COPY services/export-service/alembic.ini /app/alembic.ini
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pip install --no-cache-dir poetry && \
|
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple poetry && \
|
||||||
poetry config virtualenvs.create false && \
|
poetry config virtualenvs.create false && \
|
||||||
|
poetry source add --priority=primary tuna https://pypi.tuna.tsinghua.edu.cn/simple && \
|
||||||
poetry install --no-interaction --no-ansi --no-root
|
poetry install --no-interaction --no-ansi --no-root
|
||||||
|
|
||||||
# Set PYTHONPATH to include shared
|
# Set PYTHONPATH to include shared
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,9 @@ COPY services/template-service/alembic/ /app/alembic/
|
||||||
COPY services/template-service/alembic.ini /app/alembic.ini
|
COPY services/template-service/alembic.ini /app/alembic.ini
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pip install --no-cache-dir poetry && \
|
RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple poetry && \
|
||||||
poetry config virtualenvs.create false && \
|
poetry config virtualenvs.create false && \
|
||||||
|
poetry source add --priority=primary tuna https://pypi.tuna.tsinghua.edu.cn/simple && \
|
||||||
poetry install --no-interaction --no-ansi --no-root
|
poetry install --no-interaction --no-ansi --no-root
|
||||||
|
|
||||||
# Set PYTHONPATH to include shared
|
# Set PYTHONPATH to include shared
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue