Explorar el Código

dev dockerfile文件配置修复

mengqiankang hace 1 mes
padre
commit
f538d57dd1
Se han modificado 2 ficheros con 6 adiciones y 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 ./