Explorar o código

dev dockerfile文件配置修复

mengqiankang hai 1 mes
pai
achega
f538d57dd1
Modificáronse 2 ficheiros con 6 adicións e 2 borrados
  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 ./