Moving the updated pip into /etc and setting an env var so Python knows where to find it

This commit is contained in:
James Jones
2024-05-04 08:55:53 -04:00
parent c7c4e50ec7
commit 218ea1d222

View File

@@ -64,7 +64,12 @@ RUN gem install ffi \
# Setting up Pypi to use proxy
RUN curl -k -s -o - \
https://nexus.jamesjonesconsulting.com/repository/package-config/pypi/python3-pypi-repos.sh |\
bash
bash \
&& mv ~/.config/pip/pip.conf /etc/pip.conf \
&& chmod 644 /etc/pip.conf \
&& rm -Rf ~/.config/pip
ENV PIP_CONFIG_FILE=/etc/pip.conf
# Adding on the CPAN mirror settings for Carton and cpanminus
ENV PERL_CPANM_OPT="--mirror https://nexus.jamesjonesconsulting.com/repository/cpan-proxy/" \