diff --git a/Makefile b/Makefile index c0559fc9..103e336f 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,16 @@ PYTEST_ARGS ?= +pull: + bash docker/pull_image.sh python:3.12-slim + bash docker/pull_image.sh node:20-slim + bash docker/pull_image.sh node:20-alpine + bash docker/pull_image.sh quay.io/coreos/etcd:v3.5.5 + bash docker/pull_image.sh milvusdb/milvus:v2.5.6 + bash docker/pull_image.sh neo4j:5.26 + bash docker/pull_image.sh minio/minio:RELEASE.2023-03-20T20-16-18Z + bash docker/pull_image.sh ghcr.io/astral-sh/uv:0.7.2 + start: @if [ ! -f .env ]; then \ echo "Error: .env file not found. Please create it from .env.template"; \ diff --git a/docker/api.Dockerfile b/docker/api.Dockerfile index bf6e87fc..30d1865f 100644 --- a/docker/api.Dockerfile +++ b/docker/api.Dockerfile @@ -52,7 +52,7 @@ ENV HTTP_PROXY=$HTTP_PROXY \ # 如果网络还是不好,可以在后面添加 --index-url https://pypi.tuna.tsinghua.edu.cn/simple RUN --mount=type=cache,target=/root/.cache/uv \ - uv sync --no-dev + uv sync --no-dev --index-url https://pypi.tuna.tsinghua.edu.cn/simple # 激活虚拟环境并添加到PATH ENV PATH="/app/.venv/bin:$PATH" diff --git a/docker/web.Dockerfile b/docker/web.Dockerfile index da6c99fb..b6101e9e 100644 --- a/docker/web.Dockerfile +++ b/docker/web.Dockerfile @@ -19,7 +19,7 @@ COPY ./web/package*.json ./ COPY ./web/pnpm-lock.yaml* ./ # 安装依赖 -RUN pnpm install +RUN pnpm install --registry=https://registry.npmmirror.com # 复制源代码 COPY ./web .