diff --git a/backend/services/chart-service/Dockerfile b/backend/services/chart-service/Dockerfile index 13aa691..699b908 100644 --- a/backend/services/chart-service/Dockerfile +++ b/backend/services/chart-service/Dockerfile @@ -16,8 +16,9 @@ COPY services/chart-service/src/ /app/src/ COPY services/chart-service/alembic/ /app/alembic/ # 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 source add --priority=primary tuna https://pypi.tuna.tsinghua.edu.cn/simple && \ poetry install --no-interaction --no-ansi --no-root # Set PYTHONPATH to include shared diff --git a/backend/services/data-service/Dockerfile b/backend/services/data-service/Dockerfile index ef30688..fb7b9de 100644 --- a/backend/services/data-service/Dockerfile +++ b/backend/services/data-service/Dockerfile @@ -16,8 +16,9 @@ COPY services/data-service/src/ /app/src/ COPY services/data-service/alembic/ /app/alembic/ # 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 source add --priority=primary tuna https://pypi.tuna.tsinghua.edu.cn/simple && \ poetry install --no-interaction --no-ansi --no-root # Set PYTHONPATH to include shared diff --git a/backend/services/export-service/Dockerfile b/backend/services/export-service/Dockerfile index 2605f72..d71b179 100644 --- a/backend/services/export-service/Dockerfile +++ b/backend/services/export-service/Dockerfile @@ -26,8 +26,9 @@ COPY services/export-service/alembic/ /app/alembic/ COPY services/export-service/alembic.ini /app/alembic.ini # 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 source add --priority=primary tuna https://pypi.tuna.tsinghua.edu.cn/simple && \ poetry install --no-interaction --no-ansi --no-root # Set PYTHONPATH to include shared diff --git a/backend/services/template-service/Dockerfile b/backend/services/template-service/Dockerfile index 2ee3d62..fbf99dc 100644 --- a/backend/services/template-service/Dockerfile +++ b/backend/services/template-service/Dockerfile @@ -17,8 +17,9 @@ COPY services/template-service/alembic/ /app/alembic/ COPY services/template-service/alembic.ini /app/alembic.ini # 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 source add --priority=primary tuna https://pypi.tuna.tsinghua.edu.cn/simple && \ poetry install --no-interaction --no-ansi --no-root # Set PYTHONPATH to include shared