Ver código fonte

Merge remote-tracking branch 'origin/sit' into uat

mengqiankang 1 mês atrás
pai
commit
34b5dc67ea
2 arquivos alterados com 6 adições e 2 exclusões
  1. 3 1
      alien_gateway/Dockerfile
  2. 3 1
      alien_store/Dockerfile

+ 3 - 1
alien_gateway/Dockerfile

@@ -10,7 +10,9 @@ RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \
     && pip install --no-cache-dir poetry
 
 COPY pyproject.toml poetry.lock ./
-RUN poetry install --no-root --no-interaction --no-ansi
+
+RUN poetry source add --priority=primary tsinghua https://pypi.tuna.tsinghua.edu.cn/simple || true \
+    && poetry install --no-root --no-interaction --no-ansi
 
 COPY . .
 

+ 3 - 1
alien_store/Dockerfile

@@ -10,7 +10,9 @@ RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \
     && pip install --no-cache-dir poetry
 
 COPY pyproject.toml poetry.lock ./
-RUN poetry install --no-root --no-interaction --no-ansi
+
+RUN poetry source add --priority=primary tsinghua https://pypi.tuna.tsinghua.edu.cn/simple || true \
+    && poetry install --no-root --no-interaction --no-ansi
 
 COPY . .