From 0a4aaab82439954c650e07f75564239bb0a28d9a Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Tue, 25 Feb 2025 14:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=90=E8=A1=8C=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/api.Dockerfile | 2 -- docker/docker-compose.dev.yml | 2 +- docker/web.Dockerfile | 6 ++++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/api.Dockerfile b/docker/api.Dockerfile index cd9ab8ce..068bdc63 100644 --- a/docker/api.Dockerfile +++ b/docker/api.Dockerfile @@ -11,8 +11,6 @@ COPY ../requirements.txt /app/requirements.txt RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple RUN pip install -U gunicorn -i https://pypi.tuna.tsinghua.edu.cn/simple -# RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list -# RUN sed -i s@/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN apt-get clean RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml index 220e09f9..bd08549f 100644 --- a/docker/docker-compose.dev.yml +++ b/docker/docker-compose.dev.yml @@ -9,7 +9,7 @@ services: - ../src:/app/src - ../saves_dev:/app/saves - ../src/static/config.dev.yaml:/app/src/static/config.yaml - - ${MODEL_DIR}:${MODEL_DIR} # 如果出现 undefined volume MODEL_DIR: invalid compose project,请添加此环境变量或者注释此行 + # - ${MODEL_DIR}:${MODEL_DIR} # 如果出现 undefined volume MODEL_DIR: invalid compose project,请添加此环境变量或者注释此行 ports: - "5050:5050" depends_on: diff --git a/docker/web.Dockerfile b/docker/web.Dockerfile index e5f11d1b..20737eb3 100644 --- a/docker/web.Dockerfile +++ b/docker/web.Dockerfile @@ -6,7 +6,8 @@ WORKDIR /app COPY ./web/package*.json ./ # 安装依赖 -RUN npm install --registry https://registry.npmmirror.com --verbose --force +RUN npm install --verbose --force +# RUN npm install --registry http://mirrors.cloud.tencent.com/npm/ --verbose --force # 复制源代码 COPY ./web . @@ -21,7 +22,8 @@ FROM node:latest AS build-stage WORKDIR /app COPY ./web/package*.json ./ -RUN npm install --registry https://registry.npmmirror.com --force +RUN npm install --force +# RUN npm install --registry https://registry.npmmirror.com --force COPY ./web . RUN npm run build