소스 검색

修改配置文件

mengqiankang 1 개월 전
부모
커밋
3379bc5a88
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 1
      alien_gateway/Dockerfile
  2. 3 1
      alien_store/Dockerfile

+ 3 - 1
alien_gateway/Dockerfile

@@ -11,7 +11,9 @@ ENV POETRY_VIRTUALENVS_CREATE=false \
 RUN pip install --no-cache-dir --index-url ${PIP_INDEX_URL} 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 lock \
+  && poetry install --no-root --no-interaction --no-ansi
 
 COPY . .
 

+ 3 - 1
alien_store/Dockerfile

@@ -11,7 +11,9 @@ ENV POETRY_VIRTUALENVS_CREATE=false \
 RUN pip install --no-cache-dir --index-url ${PIP_INDEX_URL} 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 lock \
+  && poetry install --no-root --no-interaction --no-ansi
 
 COPY . .