From 2cf1ff5ebc98b5ae513b3d27f5ccb9f13b94c603 Mon Sep 17 00:00:00 2001 From: hass-demacia <138226515+hass-demacia@users.noreply.github.com> Date: Mon, 20 Oct 2025 16:31:30 +0800 Subject: [PATCH] Add comments for speeding up installations in China Added comments for alternative commands to speed up installations in China. --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index ab818ef5..bd3527ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,8 @@ FROM node:20-alpine3.22 AS node_base FROM node_base AS node_deps WORKDIR /app COPY package.json package-lock.json ./ +# ** use this instead for speeding up, if in China +# RUN npm ci --legacy-peer-deps --registry=https://registry.npmmirror.com RUN npm ci --legacy-peer-deps FROM node_base AS node_builder @@ -27,6 +29,8 @@ WORKDIR /app RUN python -m venv /opt/venv ENV PATH="/opt/venv/bin:$PATH" COPY api/requirements.txt ./api/ +# ** use this instead for speeding up, if in China +RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --no-cache -r api/requirements.txt RUN pip install --no-cache -r api/requirements.txt # Use Python 3.11 as final image @@ -36,6 +40,10 @@ FROM python:3.11-slim WORKDIR /app # Install Node.js and npm + +# ** use this instead for speeding up, if in China +# RUN sed -i 's@deb.debian.org@mirrors.aliyun.com@g' /etc/apt/sources.list.d/debian.sources \ +# && apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \ curl \ gnupg \