Add PIP extra index URLs
This commit is contained in:
parent
b1ba5cf3f2
commit
35de8e84c6
|
@ -15,11 +15,12 @@ RUN apk update --no-cache \
|
||||||
&& ln -snf /usr/share/zoneinfo/Europe/Rome /etc/localtime \
|
&& ln -snf /usr/share/zoneinfo/Europe/Rome /etc/localtime \
|
||||||
# Remove tmp files
|
# Remove tmp files
|
||||||
&& rm -rf /tmp/* /var/tmp/* \
|
&& rm -rf /tmp/* /var/tmp/* \
|
||||||
# Add PiWheels support
|
|
||||||
&& echo "[global]\nextra-index-url=https://www.piwheels.org/simple" >> /etc/pip.conf \
|
|
||||||
# Upgrade PIP
|
# Upgrade PIP
|
||||||
&& python3 -m pip install --no-cache-dir --upgrade pip
|
&& python3 -m pip install --no-cache-dir --upgrade pip
|
||||||
|
|
||||||
|
# Copy PIP extra index URLs
|
||||||
|
COPY pip.conf
|
||||||
|
|
||||||
# Copy requirements
|
# Copy requirements
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
@ -27,6 +28,8 @@ COPY requirements.txt .
|
||||||
RUN apk update --no-cache \
|
RUN apk update --no-cache \
|
||||||
# Install tmp packages
|
# Install tmp packages
|
||||||
&& apk add --no-cache --virtual build-deps gcc python3-dev musl-dev \
|
&& apk add --no-cache --virtual build-deps gcc python3-dev musl-dev \
|
||||||
|
# Add PIP extra index URLs
|
||||||
|
&& mv pip.conf /etc/pip.conf \
|
||||||
# Install PIP packages
|
# Install PIP packages
|
||||||
&& python3 -m pip install --no-cache-dir -r requirements.txt \
|
&& python3 -m pip install --no-cache-dir -r requirements.txt \
|
||||||
# Delete tmp packages
|
# Delete tmp packages
|
||||||
|
|
Loading…
Reference in New Issue