Skip to content

Commit

Permalink
perf:替换 pip 镜像源
Browse files Browse the repository at this point in the history
  • Loading branch information
tahitimoon committed Jul 14, 2024
1 parent 8ae44e9 commit 0d8f893
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions deployment/celery/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM python:3.9-slim-buster as Base
WORKDIR /backend
COPY ./backend/requirements.txt requirements.txt

# 国内打包请替换成 https://mirrors.aliyun.com/pypi/simple
ARG PIP_INDEX_URL="https://pypi.org/simple"
# 安装依赖,尽量减少镜像层并在安装后清理
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
Expand Down
1 change: 1 addition & 0 deletions deployment/django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM python:3.9-slim-buster as Base
WORKDIR /backend
COPY ./backend/requirements.txt requirements.txt

# 国内打包请替换成 https://mirrors.aliyun.com/pypi/simple
ARG PIP_INDEX_URL="https://pypi.org/simple"
# 安装依赖,尽量减少镜像层并在安装后清理
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
Expand Down
1 change: 1 addition & 0 deletions deployment/proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM python:3.9-slim-buster as Base
WORKDIR /backend
COPY ./backend/requirements.txt requirements.txt

# 国内打包请替换成 https://mirrors.aliyun.com/pypi/simple
ARG PIP_INDEX_URL="https://pypi.org/simple"
# 安装依赖,尽量减少镜像层并在安装后清理
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
Expand Down

0 comments on commit 0d8f893

Please sign in to comment.