Bladeren bron

dev dockerfile文件配置修复

mengqiankang 1 maand geleden
bovenliggende
commit
0827c5dfa4
2 gewijzigde bestanden met toevoegingen van 6 en 2 verwijderingen
  1. 3 1
      alien_gateway/Dockerfile
  2. 3 1
      alien_store/Dockerfile

+ 3 - 1
alien_gateway/Dockerfile

@@ -6,9 +6,11 @@ ENV POETRY_VIRTUALENVS_CREATE=false \
     PYTHONUNBUFFERED=1 \
     PYTHONDONTWRITEBYTECODE=1
 
-RUN pip install --no-cache-dir --index-url ${PIP_INDEX_URL} poetry
+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 source add --priority=primary tsinghua https://pypi.tuna.tsinghua.edu.cn/simple || true \
   && poetry lock \
   && poetry install --no-root --no-interaction --no-ansi

+ 3 - 1
alien_store/Dockerfile

@@ -6,9 +6,11 @@ ENV POETRY_VIRTUALENVS_CREATE=false \
     PYTHONUNBUFFERED=1 \
     PYTHONDONTWRITEBYTECODE=1
 
-RUN pip install --no-cache-dir --index-url ${PIP_INDEX_URL} poetry
+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 source add --priority=primary tsinghua https://pypi.tuna.tsinghua.edu.cn/simple || true \
   && poetry lock \
   && poetry install --no-root --no-interaction --no-ansi