Skip to content

Instantly share code, notes, and snippets.

@MrMohebi
Created March 31, 2022 06:56
Show Gist options
  • Save MrMohebi/bf9402c2656d14555db72356b3bdd1b5 to your computer and use it in GitHub Desktop.
Save MrMohebi/bf9402c2656d14555db72356b3bdd1b5 to your computer and use it in GitHub Desktop.
add fob proxy for installing gitlab libs in Docker file
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