瀏覽代碼

dev dockerfile文件配置修复

mengqiankang 1 月之前
父節點
當前提交
f538d57dd1
共有 2 個文件被更改,包括 6 次插入2 次删除
  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 ./