Skip to content

Commit 2422c73

Browse files
committed
move pip.conf
1 parent e02b841 commit 2422c73

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker/kayobe/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@ USER stack
8080
RUN echo export https_proxy=$https_proxy >> $HOME/.bashrc && \
8181
echo export http_proxy=$http_proxy >> $HOME/.bashrc
8282

83-
RUN sudo echo "[global]" >> /etc/pip.conf && \
84-
sudo echo "proxy = $https_proxy" >> /etc/pip.conf
83+
RUN mkdir /stack/.pip && chmod 700 /stack/.pip
84+
85+
RUN echo "[global]" >> /stack/.pip/pip.conf && \
86+
echo "proxy = $https_proxy" >> /stack/.pip/pip.conf
8587

8688
RUN mkdir /stack/.ssh && chmod 700 /stack/.ssh
8789
COPY --chown=stack:stack $KAYOBE_DOCKER_SSH_CONFIG_PATH /stack/.ssh/config

0 commit comments

Comments
 (0)