From 218ea1d2220a1e5ff40d43b608ac55c3db1c3f01 Mon Sep 17 00:00:00 2001 From: James Jones Date: Sat, 4 May 2024 08:55:53 -0400 Subject: [PATCH] Moving the updated pip into /etc and setting an env var so Python knows where to find it --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 907a13f..dbcfcf0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/" \