diff --git a/api/Dockerfile b/api/Dockerfile index 303d9ff4ef..ca21e3a464 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -6,14 +6,14 @@ WORKDIR /app/api # Install uv ENV UV_VERSION=0.6.14 # if you are located in China,you can add the sentence to acceding uv pip tool -# ENV UV_DEFAULT_INDEX="https://mirrors.aliyun.com/pypi/simple/" +ENV UV_DEFAULT_INDEX="https://mirrors.aliyun.com/pypi/simple/" RUN python -m pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade pip RUN pip install --no-cache-dir uv==${UV_VERSION} -i https://mirrors.aliyun.com/pypi/simple/ # if you meet some error about apt,you can try to use sources.list config apt images -# RUN rm -rf /etc/apt/source* -# ADD sources.list /etc/apt/ +RUN rm -rf /etc/apt/source* +ADD sources.list /etc/apt/ FROM base AS packages diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 172cbe2d2f..486264cebd 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -474,7 +474,8 @@ x-shared-env: &shared-api-worker-env services: # API service api: - image: langgenius/dify-api:1.2.0 + # image: langgenius/dify-api:1.2.0 + build: ../api restart: always environment: # Use the shared environment variables. @@ -503,7 +504,8 @@ services: # worker service # The Celery worker for processing the queue. worker: - image: langgenius/dify-api:1.2.0 + # image: langgenius/dify-api:1.2.0 + build: ../api restart: always environment: # Use the shared environment variables. @@ -529,7 +531,8 @@ services: # Frontend web application. web: - image: langgenius/dify-web:1.2.0 + # image: langgenius/dify-web:1.2.0 + build: ../web restart: always environment: CONSOLE_API_URL: ${CONSOLE_API_URL:-} diff --git a/web/Dockerfile b/web/Dockerfile index ef6443febb..ed7946924e 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -11,7 +11,7 @@ ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" # if you located in China, you can use taobao mirror to speed up -# RUN pnpm config set registry https://registry.npmmirror.com/ +RUN pnpm config set registry https://registry.npmmirror.com/ # install packages FROM base AS packages