Skip to content

Commit

Permalink
Merge pull request #190 from Rambin/patch-pypialiyun
Browse files Browse the repository at this point in the history
use Aliyun for PyPI source when not in Github Actions
  • Loading branch information
vvbbnn00 authored May 7, 2024
2 parents 96cd5cf + 348bf06 commit c7bf236
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ FROM python:3.11-alpine
WORKDIR /app

# Install dependencies for building some Python packages
# Check if in Github Actions, if not, change Alpine source to Aliyun
# Check if in Github Actions, if not, change Alpine source and PyPI source to Aliyun
ARG GITHUB_ACTIONS
RUN if [ "$GITHUB_ACTIONS" != "true" ]; then \
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories; \
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/; \
fi
RUN apk add --no-cache bash build-base libffi-dev openssl-dev gcompat

Expand Down

0 comments on commit c7bf236

Please sign in to comment.