add 国内源(阿里云)
All checks were successful
Build and Deploy Backend / build-and-deploy (push) Successful in 1m49s
All checks were successful
Build and Deploy Backend / build-and-deploy (push) Successful in 1m49s
This commit is contained in:
parent
ded5be6a05
commit
1f0747e13d
@ -9,7 +9,8 @@ ENV PYTHONUNBUFFERED=1
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
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 \
|
||||
gcc \
|
||||
default-libmysqlclient-dev \
|
||||
pkg-config \
|
||||
@ -17,7 +18,8 @@ RUN apt-get update && apt-get install -y \
|
||||
|
||||
# Install python dependencies
|
||||
COPY requirements.txt /app/
|
||||
RUN pip install --upgrade pip && pip install -r requirements.txt && pip install gunicorn
|
||||
RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ && \
|
||||
pip install --upgrade pip && pip install -r requirements.txt && pip install gunicorn
|
||||
|
||||
# Copy project
|
||||
COPY . /app/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user