Procházet zdrojové kódy

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

mengqiankang před 1 měsícem
rodič
revize
34b5dc67ea
2 změnil soubory, kde provedl 6 přidání a 2 odebrání
  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 . .