Skip to content

Commit

Permalink
先安装再更改软件源以适配构建环境网络
Browse files Browse the repository at this point in the history
  • Loading branch information
manjieqi committed Apr 4, 2024
1 parent 9965947 commit c28730c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ COPY geoip2.conf /etc/nginx/modules/

# 设置Python包的镜像源,并安装zope和certbot-dns-dnspod
RUN source /opt/certbot/bin/activate && \
pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple && \
pip install --no-cache-dir zope certbot-dns-dnspod && \
pip config set global.index-url https://mirrors.tencentyun.com/pypi/simple && \
deactivate

# 更改apt源为腾讯云源
RUN sed -i "s@http://deb.debian.org@https://mirrors.cloud.tencent.com@g" /etc/apt/sources.list.d/debian.sources
RUN sed -i "s@http://deb.debian.org@https://mirrors.tencentyun.com@g" /etc/apt/sources.list.d/debian.sources

0 comments on commit c28730c

Please sign in to comment.