Created
March 31, 2022 06:56
-
-
Save MrMohebi/bf9402c2656d14555db72356b3bdd1b5 to your computer and use it in GitHub Desktop.
add fob proxy for installing gitlab libs in Docker file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN apt-get install -y netcat | |
RUN mkdir -p ~/.ssh/ | |
RUN touch ~/.ssh/config | |
RUN echo 'Host gitlab.com' >> ~/.ssh/config | |
RUN echo 'ProxyCommand nc -X connect -x fodev.org:8118 %h %p' >> ~/.ssh/config | |
RUN git config --global http.proxy fodev.org:8118 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment