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