Browse Source

dev dockerfile文件配置修复

mengqiankang 1 month ago
parent
commit
f538d57dd1
2 changed files with 6 additions and 2 deletions
  1. 3 1
      alien_gateway/Dockerfile
  2. 3 1
      alien_store/Dockerfile

+ 3 - 1
alien_gateway/Dockerfile

@@ -7,7 +7,9 @@ ENV POETRY_VIRTUALENVS_CREATE=false \
     PYTHONDONTWRITEBYTECODE=1
 
 RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \
-    && pip install --no-cache-dir poetry
+    && pip install --no-cache-dir poetry \
+  -i https://pypi.tuna.tsinghua.edu.cn/simple \
+  --trusted-host pypi.tuna.tsinghua.edu.cn
 
 COPY pyproject.toml poetry.lock ./
 

+ 3 - 1
alien_store/Dockerfile

@@ -7,7 +7,9 @@ ENV POETRY_VIRTUALENVS_CREATE=false \
     PYTHONDONTWRITEBYTECODE=1
 
 RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \
-    && pip install --no-cache-dir poetry
+    && pip install --no-cache-dir poetry \
+  -i https://pypi.tuna.tsinghua.edu.cn/simple \
+  --trusted-host pypi.tuna.tsinghua.edu.cn
 
 COPY pyproject.toml poetry.lock ./